Allow unset completer function in Prompt input mode

This commit is contained in:
Maxime Coste 2014-04-13 14:15:05 +01:00
parent 9ff356cb2b
commit 7097fcf640

View File

@ -540,6 +540,8 @@ private:
{ {
try try
{ {
if (not m_completer)
return;
const String& line = m_line_editor.line(); const String& line = m_line_editor.line();
m_completions = m_completer(context(), flags, line, m_completions = m_completer(context(), flags, line,
line.byte_count_to(m_line_editor.cursor_pos())); line.byte_count_to(m_line_editor.cursor_pos()));