diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-13 22:02:30 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-13 22:02:30 -0800 |
commit | 308cb7acbe9cd8edfb9365da7c206e0dbf4af898 (patch) | |
tree | 58298c1e8bab2d4a20f571138beb1bbf6a3f7183 | |
parent | 485cd25739115047518f006a8f535b9c5e7dd043 (diff) | |
download | teliva-308cb7acbe9cd8edfb9365da7c206e0dbf4af898.tar.gz |
.
-rw-r--r-- | src/kilo.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/kilo.c b/src/kilo.c index 801ba4b..8d23bb4 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -1,6 +1,4 @@ -/* Kilo -- A very simple editor in less than 1-kilo lines of code (as counted - * by "cloc"). Does not depend on libcurses, directly emits VT100 - * escapes on the terminal. +/* Based on https://github.com/antirez/kilo * * ----------------------------------------------------------------------- * @@ -218,7 +216,7 @@ static void editorUpdateSyntax(erow *row) { in_comment = 1; while(*p) { - /* Handle // comments. */ + /* Handle single-line comments. */ if (prev_sep && *p == scs[0] && *(p+1) == scs[1]) { /* From here to end is a comment */ memset(row->hl+i,HL_COMMENT,row->size-i); @@ -650,8 +648,6 @@ writeerr: extern char *Previous_error; extern void draw_menu_item(const char* key, const char* name); -/* This function writes the whole screen using VT100 escape characters - * starting from the logical state of the editor in the global state 'E'. */ static void editorRefreshScreen(void) { int y; erow *r; |