about summary refs log tree commit diff stats
path: root/src/kilo.c
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-13 22:02:30 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-13 22:02:30 -0800
commit308cb7acbe9cd8edfb9365da7c206e0dbf4af898 (patch)
tree58298c1e8bab2d4a20f571138beb1bbf6a3f7183 /src/kilo.c
parent485cd25739115047518f006a8f535b9c5e7dd043 (diff)
downloadteliva-308cb7acbe9cd8edfb9365da7c206e0dbf4af898.tar.gz
.
Diffstat (limited to 'src/kilo.c')
-rw-r--r--src/kilo.c8
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;