about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-08 22:37:54 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-08 22:37:54 -0800
commit47c8e9df222710e8443b00e811991f7a298c7249 (patch)
tree4739a2d31e59b4583eb68c0b9aa35efabc2980af /src
parent653f9cc8748867be1161ef53f28fe1f90a900783 (diff)
downloadteliva-47c8e9df222710e8443b00e811991f7a298c7249.tar.gz
comment
Diffstat (limited to 'src')
-rw-r--r--src/kilo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kilo.c b/src/kilo.c
index 5cfb3d2..4a5bf52 100644
--- a/src/kilo.c
+++ b/src/kilo.c
@@ -744,6 +744,8 @@ static void editorRefreshScreen(void (*menu_func)(void)) {
     curs_set(0);
     clear();
     attrset(A_NORMAL);
+    /* Draw all line numbers first so they don't mess up curses state later
+     * when rendering lines. */
     for (y = 0; y < LINES-1; y++) {
         int filerow = E.rowoff+y;