summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2022-01-03 22:43:04 +0100
committerJohannes Altmanninger <aclopte@gmail.com>2022-01-09 20:23:51 +0100
commit6f7c5aed107c183565661336ae840998a73e783f (patch)
tree54388122f7b129a4d5beded52bba1603ce0ec065 /src/input_handler.cc
parent871782faaf954cda654cdbdcb3590b45534607d1 (diff)
Do not show custom completions when autocomplete is off
As reported in [1], completions provided by "set global completers option=my_completion" activate insert mode autocompletion, even when the autocomplete option does not have the insert mode flag. This happens because InsertCompleter::on_option_changed() calls InsertCompleter::setup_ifn(), which shows the completion pager. Fix this by computing whether the completion pager is enabled; otherwise we can return early from setup_ifn(). The completion pager is enabled if the autocompletion bit is set, or if the user has requested explicit completion. [1]: https://github.com/kak-lsp/kak-lsp/issues/585
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions