From 5ed4bbc7f12686bb480ab8b2b05c94e12b1c71d8 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Sun, 1 Oct 2017 10:37:44 +0330 Subject: [PATCH] vi: explain when the screen is updated in vi() --- vi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vi.c b/vi.c index c4442d7..96521a2 100644 --- a/vi.c +++ b/vi.c @@ -1049,7 +1049,7 @@ static void vi(void) vi_drawagain(xcol, 0); term_pos(xrow - xtop, led_pos(lbuf_get(xb, xrow), xcol)); while (!xquit) { - int mod = 0; /* screen should be redrawn */ + int mod = 0; /* screen should be redrawn (1: current line, 2: the whole screen */ int nrow = xrow; int noff = ren_noeol(lbuf_get(xb, xrow), xoff); int otop = xtop; -- 2.11.4.GIT