43 |
|
return -1 |
44 |
|
} |
45 |
|
set curmess {} |
46 |
< |
set n [lsearch -glob $radvar(view) "$viewname *"] |
46 |
> |
set n [lsearch -exact $radvar(view) $viewname] |
47 |
> |
if {$n < 0} { |
48 |
> |
set n [lsearch -glob $radvar(view) "$viewname *"] |
49 |
> |
} |
50 |
|
if {$n >= 0} { |
51 |
|
set radvar(view) [lreplace $radvar(view) $n $n] |
52 |
|
if {"$pos" != "end" && $pos > $n} {incr pos -1} |
189 |
|
helplink $w.copy trad views copy |
190 |
|
# Assign focus |
191 |
|
bind $w.vne <Return> "focus $w.vo.e" |
192 |
< |
bind $w.vo.e <Return> addview |
192 |
> |
bind $w.vo.e <Return> "addview ; $w.vclr invoke" |
193 |
|
bind $w.vo.e <B2-Motion> {} |
194 |
|
bind $w.vo.e <Button-2> "$w.vo.e insert insert \[selection get\]" |
195 |
|
$w.vclr invoke |