tvi: redraw if commands like x change visible columns - neatvi - [fork] simple vi-type editor with UTF-8 support
HTML git clone git://src.adamsgaard.dk/neatvi
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit ba8b939c9468cb119218cf20df963e1cd59fdd44
DIR parent 9bf5bfb3a0527155ff78c62a89f1dff81df6e113
HTML Author: Ali Gholami Rudi <ali@rudi.ir>
Date: Thu, 22 Sep 2016 17:07:37 +0330
vi: redraw if commands like x change visible columns
Diffstat:
M vi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/vi.c b/vi.c
t@@ -1322,7 +1322,7 @@ static void vi(void)
xleft = xcol < xcols ? 0 : xcol - xcols / 2;
vi_wait();
if (mod || xleft != oleft)
- vi_drawagain(xcol, mod == 2);
+ vi_drawagain(xcol, mod == 2 && xleft == oleft);
else if (xtop != otop)
vi_drawupdate(xcol, otop);
if (vi_msg[0])