summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-04-13 14:15:05 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-04-13 14:15:05 +0100
commit7097fcf64029f8c4d99ee6516398f932f6386531 (patch)
tree40e584535767af17b13d957ff693e11d3126c8db /src/input_handler.cc
parent9ff356cb2b3b09952b3685ce54a20eea832f1b97 (diff)
Allow unset completer function in Prompt input mode
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc2
1 files changed, 2 insertions, 0 deletions
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()));