Currently a sequence like this "hello " (a word followed by
6 spaces). Would be shaped into two words: ["hello " , " "]
This causes issues, since the first word is only 5 letters long, not 10
This commit will break this sequence into:
["hello", " ", " ", " ", " ", " ", " "]
This helps with correct line wrappipng
* WIP VI wrapper for editor
* WIP: block cursor
* Create Edit trait, run CI on all feature options
* Add prints describing build steps to ci.sh
* Custom rendering for Vi editor
* Clippy fixes
* More clippy fixes
* Show clippy results in CI
* Fix for Redox
* Fix clippy lint
* Add vi feature to enable vi-style editor
* Add escape to libcosmic text box
* WIP: initial text-margin support
* Fix the selection issue when clicking the margins
* Move the margin size into the main
* using padding, consistent with iced text_input
* Added top and bottom margin
* bugfix: selection starting from the top margin works
* bugfix: left half of first glyph was being ignored
* Rework Ranges to split and change or overwrite based on old ranges to new range
* set array size to 3 instead of 5. added some comments
* Avoid adding ranges that the start and end == each other
* actually remove the start != end requirement since get_span doesnt care and would work for single characters.
* Add 1 to forward map so it cant overlap ranges like 11..11
* optimize the span lookup so if it is outside the search parameters it doesnt keep looping. update get span to iterate normally since there should be no duplicates. Maybe optimize this to a btree now instead?
* make the range changes for front to end have the end -1 so as to not overlap since get span is <=
* Readded block for ranges like 1..1
Moved rework ranges into the first loop.
Removed the -1 and +1 from the range clips.