all repos — minline @ fef435658bd0578e24aa33686836cd5a29a8bb22

A minimalist but highly-customizable line editing library.

No longer failing if no completion callback is provided.
h3rald h3rald@h3rald.com
Sat, 03 Jun 2017 22:27:55 +0200
commit

fef435658bd0578e24aa33686836cd5a29a8bb22

parent

caf6232a873da14706d8e5e376199ec0f2e370ac

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

jump to
M nimline.nimnimline.nim

@@ -327,7 +327,7 @@ ed.history.tainted = false

proc completeLine*(ed: var LineEditor): int = if ed.completionCallback.isNil: - raise LineEditorError(msg: "Completion callback is not set") + return let compl = ed.completionCallback(ed) let position = ed.line.position let words = ed.line.fromStart.split(" ")