vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit ea4fe35c713eea4e4e89ccecdef4e631909924a0 parent 1830a98d60a27045b23c23af00e2a979627143d7 Author: Marc André Tanner <mat@brain-dump.org> Date: Tue, 10 May 2016 22:16:34 +0200 vis: improve cursor placement at EOF with enabled auto indent Close #314 Diffstat:
| M | vis.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vis.c b/vis.c @@ -1138,7 +1138,7 @@ static void copy_indent_from_previous_line(Win *win, Cursor *cur) { return; len = text_bytes_get(text, begin, len, buf); text_insert(text, pos, buf, len); - view_cursors_scroll_to(cur, pos + len); + view_cursors_to(cur, pos + len); free(buf); }