tvi: explain when the screen is updated in vi() - neatvi - [fork] simple vi-type editor with UTF-8 support
 (HTM) git clone git://src.adamsgaard.dk/neatvi
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit 5ed4bbc7f12686bb480ab8b2b05c94e12b1c71d8
 (DIR) parent c200015e9b9aca02b6d622a55929e2b30e4912a5
 (HTM) 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:
         M vi.c                                |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/vi.c b/vi.c
       t@@ -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;