Commit Graph

7 Commits (23b5b1e25aca1dbed87fef18cc72b16852ba40a8)

Author SHA1 Message Date
Skyler Hawthorne 0f3c10a021 Fix initial selection of Document in new view
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.
2 years ago
Blaž Hrastnik dd2903ff10 Dynamically load grammar libraries at runtime 3 years ago
Timothy DeHerrera 8590f6a912 ignore Nix outputs 4 years ago
Blaž Hrastnik f1539cc866 Add a nix flake with the development environment. 4 years ago
Blaž Hrastnik 088f8a82af Incremental parsing: rough draft. 4 years ago
Jan Hrastnik 065cbcee9e fixed async loop 5 years ago
Blaž Hrastnik 240e5f4e3d Initial import. 5 years ago