Age | Commit message (Collapse) | Author |
|
|
|
For whatever reason lines were called rows in the code, so this refactor
changes that name everywhere. The name 'row' is still used in some
places to refer to the unit of height in the screen.
|
|
The editor had two issues when reading a file with a name from the
command line. The most annoying issue was that when reallocating the
internal filename in the editor, the null terminator wasn't copied which
sometimes left garbage at the end of the filename.
The other issue was that the editor would quit with a fatal error if
there was no file with the specified name, when it should open the file
anyway and just create it on save.
|
|
This was causing the editor to crash on startup when opening a file from
the command line.
|
|
|
|
This is based off of snaptoken's "Build Your Own Text Editor" tutorial
at https://viewsourcecode.org/snaptoken/kilo/.
|