diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-12-08 22:37:54 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-12-08 22:37:54 -0800 |
commit | 47c8e9df222710e8443b00e811991f7a298c7249 (patch) | |
tree | 4739a2d31e59b4583eb68c0b9aa35efabc2980af /src | |
parent | 653f9cc8748867be1161ef53f28fe1f90a900783 (diff) | |
download | teliva-47c8e9df222710e8443b00e811991f7a298c7249.tar.gz |
comment
Diffstat (limited to 'src')
-rw-r--r-- | src/kilo.c | 2 |
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; |