kilo
kilo copied to clipboard
A text editor in less than 1000 LOC with syntax highlight and search.
The accounting of text and cursor positions failed when editing text at the RH end of a long line, especially when `TAB` characters are in the LH part of the...
I am reading kilo code for learning C language. In line551, allocating 9 bytes memory for one non-printable character. Why 9 bytes memory need for a non-printable character? And `nonprint`...
The function `editorRowHasOpenComment()` used its own definition of a closing multiline comment and duplicated the `hl_oc` member of `struct erow`. Change to use the latter throughout and thus respect the...
This program may not be used on Windows , e.g. terminos.h. Do you plan to support running on Windows?
I tried to debug the program using GDB and VS Code, but since the code uses escape sequences on Terminal for display, it can interfere with GDB output. For example,...
Not sure if you ever have the time, but in the distant future perhaps you could either add to the main README, or to another file, and explain the code...
I'm following your blog on building a text editor. btw Thank you so much for that nice blog. when I call getCursorposition to query the window size it stores the...
Hi, Kilo appears to have a heap buffer overflow triggered by the `memcmp` call [on line 475 of kilo.c](https://github.com/antirez/kilo/blob/master/kilo.c#L475): ``` int j; for (j = 0; keywords[j]; j++) { int...
just for the records: Fedora release 29 gcc (GCC) 8.2.1 20181215 (Red Hat 8.2.1-6) In file included from /usr/include/termios.h:25, from kilo.c:40: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use...
change style. if this pull request will be approved, whole file style will change to kernel style in less than one week.