From d5b6669a837ce1a28dd8fe9c86e6ab9bf643172c Mon Sep 17 00:00:00 2001 From: Delapouite Date: Tue, 24 Oct 2017 22:41:13 +0200 Subject: Add distinct w (curr buf) / W (all buf) word completion for --- src/input_handler.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/input_handler.cc') diff --git a/src/input_handler.cc b/src/input_handler.cc index 25ceacc3..73e3649e 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1208,12 +1208,15 @@ public: if (key.key == 'f') m_completer.explicit_file_complete(); if (key.key == 'w') - m_completer.explicit_word_complete(); + m_completer.explicit_word_buffer_complete(); + if (key.key == 'W') + m_completer.explicit_word_all_complete(); if (key.key == 'l') m_completer.explicit_line_complete(); }, "enter completion type", "f: filename\n" - "w: word\n" + "w: word (current buffer)\n" + "W: word (all buffers)\n" "l: line\n"); update_completions = false; } -- cgit v1.2.3