commit 5ed4bbc7f12686bb480ab8b2b05c94e12b1c71d8
parent c200015e9b9aca02b6d622a55929e2b30e4912a5
Author: Ali Gholami Rudi <ali@rudi.ir>
Date: Sun, 1 Oct 2017 10:37:44 +0330
vi: explain when the screen is updated in vi()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;