Add line ending abstraction (#250)

* Add line ending abstraction

* Make Buffer::set_text use LineIter

* Add ctrl+s for saving to editor
This commit is contained in:
Jeremy Soller 2024-04-30 12:12:25 -06:00 committed by GitHub
parent ff5501d9a3
commit 0cfd9b64ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 194 additions and 15 deletions

3
sample/crlf.txt Normal file
View file

@ -0,0 +1,3 @@
These are two lines
in a CRLF file

5
sample/tabs.txt Normal file
View file

@ -0,0 +1,5 @@
Tabs:
One Two Three Four
Two Three Four
Three Four
Four