From 7097fcf64029f8c4d99ee6516398f932f6386531 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 13 Apr 2014 14:15:05 +0100 Subject: [PATCH] Allow unset completer function in Prompt input mode --- src/input_handler.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input_handler.cc b/src/input_handler.cc index df2cab06..c5e0380e 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -540,6 +540,8 @@ private: { try { + if (not m_completer) + return; const String& line = m_line_editor.line(); m_completions = m_completer(context(), flags, line, line.byte_count_to(m_line_editor.cursor_pos()));