Fixes.
h3rald h3rald@h3rald.com
Sat, 03 Jun 2017 22:25:00 +0200
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
nimline.nim
→
nimline.nim
@@ -263,10 +263,14 @@ ed.line.position = 0
ed.line.text = "" proc goToStart*(ed: var LineEditor) = + if ed.line.position <= 0: + return stdout.cursorBackward(ed.line.position) ed.line.position = 0 proc goToEnd*(ed: var LineEditor) = + if ed.line.full: + return let diff = ed.line.text.len - ed.line.position stdout.cursorForward(diff) ed.line.position = ed.line.text.len