aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-26 17:11:35 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-26 17:11:35 +0200
commita4ae277139a221faffa20b130a002e1f2e7e460a (patch)
tree5e82a3572fcaa3251fcef6b26fafd957946a1450 /view.c
parentd58a37a179474d42bae6ec718ea0cf4578eb9f2a (diff)
downloadvis-a4ae277139a221faffa20b130a002e1f2e7e460a.tar.gz
vis-a4ae277139a221faffa20b130a002e1f2e7e460a.tar.xz
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 (limited to 'view.c')
-rw-r--r--view.c1
1 files changed, 0 insertions, 1 deletions
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;
}