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:
parent
ff5501d9a3
commit
0cfd9b64ef
10 changed files with 194 additions and 15 deletions
3
sample/crlf.txt
Normal file
3
sample/crlf.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
These are two lines
|
||||
in a CRLF file
|
||||
|
||||
5
sample/tabs.txt
Normal file
5
sample/tabs.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Tabs:
|
||||
One Two Three Four
|
||||
Two Three Four
|
||||
Three Four
|
||||
Four
|
||||
Loading…
Add table
Add a link
Reference in a new issue