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} |
182 |
|
place $w.revert -relwidth .1071 -relheight .0610 -relx .98 -rely .98 \ |
183 |
|
-anchor se |
184 |
|
helplink $w.revert trad views revert |
185 |
< |
button $w.copy -text Copy -relief raised -command {getfile \ |
185 |
> |
button $w.copy -text Copy -relief raised -command {getfile -grab \ |
186 |
|
-send copyviews -view view_txt -glob $rif_glob} |
187 |
|
place $w.copy -relwidth .1071 -relheight .0610 -relx .98 -rely .90 \ |
188 |
|
-anchor se |
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 |