helix/helix-term/src
Michael Davis 48373d4a2b
Clear completion when switching windows via click (#8118)
The completion component assumes that it operates on the same View but
it's possible to break this assumption by switching windows through
left-clicking. I believe we should clear the completion menu when
switching windows to fix this.

This change fixes a panic for this scenario:

* Open a buffer with LSP completion available
* Split the window (for example '<C-w>v')
* Enter insert mode and trigger the completion menu
* Select a completion candidate (for example with '<C-n>')
* Switch to the original window by left-clicking in its area
* Enter insert mode and make edits (for example 'o<backspace>')

This will trip the 'assert_eq' in Document::restore.
2023-08-31 15:12:32 +09:00
..
commands transition to nucleo for fuzzy matching (#7814) 2023-08-30 13:26:21 +09:00
keymap feat: smart_tab 2023-08-01 09:41:42 -05:00
ui Clear completion when switching windows via click (#8118) 2023-08-31 15:12:32 +09:00
application.rs transition to nucleo for fuzzy matching (#7814) 2023-08-30 13:26:21 +09:00
args.rs Fix confusion with using --hsplit --vsplit on startup at same time (#4202) 2022-10-11 09:25:42 -04:00
commands.rs transition to nucleo for fuzzy matching (#7814) 2023-08-30 13:26:21 +09:00
compositor.rs bump msrv to 1.63 (#5570) 2023-02-09 11:24:31 +09:00
config.rs feat: smart_tab 2023-08-01 09:41:42 -05:00
health.rs Refactor doc language servers to a HashMap, and the config to use a Vec to retain order 2023-05-18 21:48:32 +02:00
job.rs bump msrv to 1.63 (#5570) 2023-02-09 11:24:31 +09:00
keymap.rs Fix broken indentation that causes the indentation tests to fail. 2023-08-11 23:44:02 +09:00
lib.rs Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00
main.rs Initialize log and config files right after parsing arguments (#7585) 2023-07-09 11:30:43 -05:00