No longer failing if no completion callback is provided.
h3rald h3rald@h3rald.com
Sat, 03 Jun 2017 22:27:55 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
nimline.nim
→
nimline.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(" ")