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()));