--- ray/src/util/do_views3.6.tcl 1994/10/28 20:14:39 2.2 +++ ray/src/util/do_views3.6.tcl 1995/03/24 12:35:27 2.4 @@ -43,7 +43,10 @@ proc addview {{pos end}} { # add current view return -1 } set curmess {} - set n [lsearch -glob $radvar(view) "$viewname *"] + set n [lsearch -exact $radvar(view) $viewname] + if {$n < 0} { + set n [lsearch -glob $radvar(view) "$viewname *"] + } if {$n >= 0} { set radvar(view) [lreplace $radvar(view) $n $n] if {"$pos" != "end" && $pos > $n} {incr pos -1} @@ -186,7 +189,7 @@ proc do_views w { # create views screen helplink $w.copy trad views copy # Assign focus bind $w.vne "focus $w.vo.e" - bind $w.vo.e addview + bind $w.vo.e "addview ; $w.vclr invoke" bind $w.vo.e {} bind $w.vo.e "$w.vo.e insert insert \[selection get\]" $w.vclr invoke