diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-07-26 17:11:35 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-07-26 17:11:35 +0200 |
| commit | a4ae277139a221faffa20b130a002e1f2e7e460a (patch) | |
| tree | 5e82a3572fcaa3251fcef6b26fafd957946a1450 /view.c | |
| parent | d58a37a179474d42bae6ec718ea0cf4578eb9f2a (diff) | |
| download | vis-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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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; } |
