mirror of https://github.com/helix-editor/helix
When a new View of a Document is created, a default cursor of 0, 0 is created, and it does not get normalized to a single width cursor until at least one movement of the cursor happens. This appears to have no practical negative effect that I could find, but it makes tests difficult to work with, since the initial selection is not what you expect it to be. This changes the initial selection of a new View to be the width of the first grapheme in the text. |
||
---|---|---|
.. | ||
handlers | ||
clipboard.rs | ||
document.rs | ||
editor.rs | ||
graphics.rs | ||
gutter.rs | ||
info.rs | ||
input.rs | ||
keyboard.rs | ||
lib.rs | ||
macros.rs | ||
theme.rs | ||
tree.rs | ||
view.rs |