summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorfvogel <fvogel@noemail.net>2017-08-12 19:45:14 (GMT)
committerfvogel <fvogel@noemail.net>2017-08-12 19:45:14 (GMT)
commitcd28713e1784e7561dfd1cfa6350249d94e97f80 (patch)
treebaf19ae73c69bd258287a9a68ebc2609a60b35b2 /library
parent041d7d5e4f3ce4d3c4001207bb293061d7434cec (diff)
downloadtk-cd28713e1784e7561dfd1cfa6350249d94e97f80.zip
tk-cd28713e1784e7561dfd1cfa6350249d94e97f80.tar.gz
tk-cd28713e1784e7561dfd1cfa6350249d94e97f80.tar.bz2
Fix [3295446]: Make the insertion cursor always visible when browsing console history. Patch from Andy Goth
FossilOrigin-Name: 9924d370f9feb9c10216a6d48e984f1955f5e8e4
Diffstat (limited to 'library')
-rw-r--r--library/console.tcl2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/console.tcl b/library/console.tcl
index ba68ccc..355a43b 100644
--- a/library/console.tcl
+++ b/library/console.tcl
@@ -286,6 +286,7 @@ proc ::tk::ConsoleHistory {cmd} {
}
.console delete promptEnd end
.console insert promptEnd $cmd {input stdin}
+ .console see end
}
next {
incr HistNum
@@ -302,6 +303,7 @@ proc ::tk::ConsoleHistory {cmd} {
}
.console delete promptEnd end
.console insert promptEnd $cmd {input stdin}
+ .console see end
}
reset {
set HistNum 1