Небольшие правки в подсказках по переменным
This commit is contained in:
parent
58f8e59236
commit
c379f6d70b
|
@ -510,6 +510,10 @@ namespace eval Editor {
|
||||||
unset lpos
|
unset lpos
|
||||||
$txt tag remove lightSelected 1.0 end
|
$txt tag remove lightSelected 1.0 end
|
||||||
|
|
||||||
|
if {$cfgVariables(variableHelper) eq "true"} {
|
||||||
|
if { [winfo exists .varhelper] } { destroy .varhelper }
|
||||||
|
}
|
||||||
|
|
||||||
switch $k {
|
switch $k {
|
||||||
Return {
|
Return {
|
||||||
regexp {^(\s*)} [$txt get [expr $lineNum - 1].0 [expr $lineNum - 1].end] -> spaceStart
|
regexp {^(\s*)} [$txt get [expr $lineNum - 1].0 [expr $lineNum - 1].end] -> spaceStart
|
||||||
|
@ -529,6 +533,15 @@ namespace eval Editor {
|
||||||
Right {
|
Right {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Shift {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
Controll {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
Meta {
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
# set lineStart [$txt index "$pos linestart"]
|
# set lineStart [$txt index "$pos linestart"]
|
||||||
# puts "$pos $lineStart"
|
# puts "$pos $lineStart"
|
||||||
|
@ -546,10 +559,11 @@ namespace eval Editor {
|
||||||
set _ [split $ind "."]
|
set _ [split $ind "."]
|
||||||
set ind [lindex $_ 0].[expr [lindex $_ 1] + 1]
|
set ind [lindex $_ 0].[expr [lindex $_ 1] + 1]
|
||||||
set word [$txt get $ind $pos]
|
set word [$txt get $ind $pos]
|
||||||
Editor::VarHelper $box_x $box_y $txt $word
|
} else {
|
||||||
} else {
|
|
||||||
# set ind [$txt search -backwards -regexp {^} $pos {insert linestart}]
|
# set ind [$txt search -backwards -regexp {^} $pos {insert linestart}]
|
||||||
set word [$txt get {insert linestart} $pos]
|
set word [$txt get {insert linestart} $pos]
|
||||||
|
}
|
||||||
|
if {$word ne ""} {
|
||||||
Editor::VarHelper $box_x $box_y $txt $word
|
Editor::VarHelper $box_x $box_y $txt $word
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user