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-plus/helix-term/src/ui
Michael Davis ba394dca6d
Fix panic from two windows editing the same document (#4570)
* Clamp highlighting range to be within document

This fixes a panic possible when two vsplits of the same document
exist and enough lines are deleted from the document so that one of
the windows focuses past the end of the document.

* Ensure cursor is in view on window change

If two windows are editing the same document, one may delete enough of
the document so that the other window is pointing at a blank page (past
the document end). In this change we ensure that the cursor is within
view whenever we switch to a new window (for example with `<C-w>w`).

* Update helix-term/src/ui/editor.rs

Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>

Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
2 years ago
..
fuzzy_match Treat space as a seperator instead of a character in fuzzy picker 2 years ago
completion.rs feat(lsp): LSP preselected items appear first in completion menu (#4480) 2 years ago
editor.rs Fix panic from two windows editing the same document (#4570) 2 years ago
fuzzy_match.rs Treat space as a seperator instead of a character in fuzzy picker 2 years ago
info.rs Refactor Margin for fine grained control (#2727) 2 years ago
lsp.rs Fix signature help panic when too large (#4030) 2 years ago
markdown.rs Render html <code> tags as code in markdown (#3425) 2 years ago
menu.rs feat(lsp): LSP preselected items appear first in completion menu (#4480) 2 years ago
mod.rs factor editor event handling into function 2 years ago
overlay.rs Add bracketed paste (#3233) 2 years ago
picker.rs Render diagnostics in the file picker preview (#4324) 2 years ago
popup.rs Add bracketed paste (#3233) 2 years ago
prompt.rs Correctly handle escaping in completion (#4316) 2 years ago
spinner.rs Instant is more suitable than SystemTime for spinners 3 years ago
statusline.rs feat(statusline): add option to show total line numbers in file (#3960) 2 years ago
text.rs fix: Allow multi-line prompt documentation 3 years ago