diff options
| author | Delapouite <delapouite@gmail.com> | 2017-10-24 22:41:13 +0200 |
|---|---|---|
| committer | Delapouite <delapouite@gmail.com> | 2017-10-24 22:47:43 +0200 |
| commit | d5b6669a837ce1a28dd8fe9c86e6ab9bf643172c (patch) | |
| tree | 7f2dc80f763839e5a654265d5c943302ac6e3852 /src/input_handler.cc | |
| parent | 30ce5a00557f39fc0352becf03bf94c27e2546f2 (diff) | |
Add distinct w (curr buf) / W (all buf) word completion for <c-x>
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |
