all repos — min @ fae85f3b62a4e49f14f0fcdc342c54cdf49658ba

A small but practical concatenative programming language.

Fixed CTRL+E binding.
h3rald h3rald@h3rald.com
Fri, 07 Oct 2016 16:41:22 +0200
commit

fae85f3b62a4e49f14f0fcdc342c54cdf49658ba

parent

c88b9dda1fe3ce2b885c9d15e8629abaca535106

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M core/linedit.nimcore/linedit.nim

@@ -223,7 +223,8 @@ stdout.cursorBackward(ed.line.position)

ed.line.position = 0 proc goToEnd*(ed: var LineEditor) = - stdout.cursorForward(ed.line.text.len) + let diff = ed.line.text.len - ed.line.position + stdout.cursorForward(diff) ed.line.position = ed.line.text.len proc historyInit*(size = 256, historyFile: string = nil): LineHistory =