From a4ae277139a221faffa20b130a002e1f2e7e460a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 26 Jul 2015 17:11:35 +0200 Subject: 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. --- view.c | 1 - 1 file changed, 1 deletion(-) (limited to 'view.c') diff --git a/view.c b/view.c index 700ea40..3bbb1cb 100644 --- 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; } -- cgit v1.2.3