diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-06 10:06:25 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-06 10:12:50 -0700 |
commit | e0c0dea5b708549ff440d451e0c8c0aaae620331 (patch) | |
tree | db4f05993ecf81dbcd66a5cde3ed2861a3ae0451 /src | |
parent | 567ee60c5a53d4eb0f96a77a30cb53ac13bc84f8 (diff) | |
download | teliva-e0c0dea5b708549ff440d451e0c8c0aaae620331.tar.gz |
.
Diffstat (limited to 'src')
-rw-r--r-- | src/kilo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kilo.c b/src/kilo.c index fefa96a..5af4ac0 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -925,10 +925,10 @@ void editorRefreshScreen(void) { char status[80], rstatus[80]; int len = snprintf(status, sizeof(status), "%.20s - %d lines %s", E.filename, E.numrows, E.dirty ? "(modified)" : ""); - int rlen = snprintf(rstatus, sizeof(rstatus), - "%d/%d",E.rowoff+E.cy+1,E.numrows); if (len > E.screencols) len = E.screencols; abAppend(&ab,status,len); + int rlen = snprintf(rstatus, sizeof(rstatus), + "%d/%d",E.rowoff+E.cy+1,E.numrows); while(len < E.screencols) { if (E.screencols - len == rlen) { abAppend(&ab,rstatus,rlen); |