Attempting to fix issue #8.
h3rald h3rald@h3rald.com
Sun, 06 May 2018 20:49:44 +0200
1 files changed,
5 insertions(+),
2 deletions(-)
jump to
M
nimline.nim
→
nimline.nim
@@ -203,8 +203,11 @@
proc goToStart*(ed: var LineEditor) = if ed.line.position <= 0: return - stdout.cursorBackward(ed.line.position) - ed.line.position = 0 + try: + stdout.cursorBackward(ed.line.position) + ed.line.position = 0 + except: + discard proc goToEnd*(ed: var LineEditor) = if ed.line.full: