Introduction
Introduction Statistics Contact Development Disclaimer Help
tex: preserve current line number in edit command - neatvi - [fork] simple vi-t…
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit 31e7e13a90023abeac92914774c31721ae0c22d9
parent bb6ac7ee69d65189666e9d9e64af2068607b35f2
Author: Ali Gholami Rudi <[email protected]>
Date: Mon, 28 Dec 2015 07:58:54 +0330
ex: preserve current line number in edit command
Diffstat:
M ex.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/ex.c b/ex.c
t@@ -367,9 +367,10 @@ static int ec_edit(char *ec)
ex_path(), lbuf_len(xb));
ex_show(msg);
}
- xrow = xvis ? 0 : MAX(0, MIN(xrow, lbuf_len(xb) - 1));
lbuf_saved(xb, path[0] != '\0');
bufs[0].mtime = mtime(ex_path());
+ xrow = MAX(0, MIN(xrow, lbuf_len(xb) - 1));
+ xoff = 0;
return 0;
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.