diff options
| author | Delapouite <delapouite@gmail.com> | 2017-10-26 13:04:28 +0200 |
|---|---|---|
| committer | Delapouite <delapouite@gmail.com> | 2018-02-27 09:48:49 +0100 |
| commit | 0568836943b75de57317fe14618904b32d6c0e2c (patch) | |
| tree | c3d973992cbd93536b48b1cb33a3edae7ce3a23e /src/input_handler.cc | |
| parent | 9bd9fecb53c51733e4addedcc9f635891ec6c2f7 (diff) | |
Add support for line completion in all buffers
- via completers option with line=all vs line=buffer
- via <c-x> L mapping
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 3662e12f..5dc44794 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1223,12 +1223,15 @@ public: if (key.key == 'W') m_completer.explicit_word_all_complete(); if (key.key == 'l') - m_completer.explicit_line_complete(); + m_completer.explicit_line_buffer_complete(); + if (key.key == 'L') + m_completer.explicit_line_all_complete(); }, "enter completion type", "f: filename\n" "w: word (current buffer)\n" "W: word (all buffers)\n" - "l: line\n"); + "l: line (current buffer)\n" + "L: line (all buffers)\n"); update_completions = false; } else if (key == ctrl('o')) |
