You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/helix-term/src/ui
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.
1 year ago
..
completion.rs Reformat with nightly rustfmt for better let-else formatting (#7721) 1 year ago
document.rs Fix typos (#6643) 2 years ago
editor.rs Clear completion when switching windows via click (#8118) 1 year ago
info.rs Refactor Margin for fine grained control (#2727) 2 years ago
lsp.rs highlighted_code_block: Take input text as &str 1 year ago
markdown.rs highlighted_code_block: Take input text as &str 1 year ago
menu.rs transition to nucleo for fuzzy matching (#7814) 1 year ago
mod.rs transition to nucleo for fuzzy matching (#7814) 1 year ago
overlay.rs Fix typos (#6643) 2 years ago
picker.rs transition to nucleo for fuzzy matching (#7814) 1 year ago
popup.rs Hide signature help if it overlays completion menu (#5523) 2 years ago
prompt.rs Preview the latest value for regular registers 1 year ago
spinner.rs Instant is more suitable than SystemTime for spinners 3 years ago
statusline.rs Show whether file readonly in statusline (#7740) 1 year ago
text.rs Fix 'attempt to divide by zero' panic (#6155) 2 years ago