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-view/src
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
..
handlers feat(csharp,debug): add C# debugger support (#4213) 2 years ago
base64.rs Use OSC 52 as a fallback for setting the system clipboard (#3220) 2 years ago
clipboard.rs Use OSC 52 as a fallback for setting the system clipboard (#3220) 2 years ago
document.rs cargo fmt 2 years ago
editor.rs Fix panic from two windows editing the same document (#4570) 2 years ago
env.rs Use OSC 52 as a fallback for setting the system clipboard (#3220) 2 years ago
graphics.rs Allow the area to be bigger than u16 (width and height remain u16) (#4318) 2 years ago
gutter.rs make underline_style a seperate option 2 years ago
info.rs fix: remove unneeded allocations when calling helix_view::Info::new 2 years ago
input.rs Propagate idle timeout event to components (#3172) 2 years ago
keyboard.rs Update to crossterm-0.25 (#3390) 2 years ago
lib.rs Use OSC 52 as a fallback for setting the system clipboard (#3220) 2 years ago
macros.rs Expand doc/view macros to allow fetching specific id 2 years ago
theme.rs commands: Make no arg ':theme' show name (#3740) 2 years ago
tree.rs Fix cargo doc warnings, and add GitHub action to ensure it (#3650) 2 years ago
view.rs Add View::apply for adjusting jumplist ranges 2 years ago