vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 4ccaa83f43c6feff2777dbd9787ec1f467e8a842 parent 26d66832455606cb55b264db770f0379ae405c85 Author: Marc André Tanner <mat@brain-dump.org> Date: Sun, 26 Jul 2015 17:11:35 +0200 view: do not set cursor position after resize The problem is that a cursor movement might cause a redraw which in turn causes the sidebar width to change thus the view to be resized which will override the cursor position. Diffstat:
| M | view.c | | | 1 | - |
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git a/view.c b/view.c @@ -527,7 +527,6 @@ bool view_resize(View *view, int width, int height) { if (view->lines) memset(view->lines, 0, view->lines_size); view_draw(view); - view_cursors_to(view->cursor, view_cursors_pos(view->cursor)); return true; }