all repos — minline @ 98b1a69f686d0b7eb73d5140cd22242ae3e514b2

A minimalist but highly-customizable line editing library.

Attempting to fix issue #8.
h3rald h3rald@h3rald.com
Sun, 06 May 2018 20:49:44 +0200
commit

98b1a69f686d0b7eb73d5140cd22242ae3e514b2

parent

606f14da66f256f48ddb72f242b1af23f68c8d08

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

jump to
M nimline.nimnimline.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: