diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-04 18:54:55 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-02-06 01:21:01 +0100 |
commit | b77cad183ddcb7d0f312a3cf022238c43932a07b (patch) | |
tree | 2a6d3665847c0cd6021672ff07e502add48cd444 /src/nvim/screen.c | |
parent | 1ec52b893a3934acbb88a2498824f2629b318046 (diff) | |
download | rneovim-b77cad183ddcb7d0f312a3cf022238c43932a07b.tar.gz rneovim-b77cad183ddcb7d0f312a3cf022238c43932a07b.tar.bz2 rneovim-b77cad183ddcb7d0f312a3cf022238c43932a07b.zip |
vim-patch:8.0.0275
Problem: When checking for CTRL-C typed the GUI may detect a screen resize
and redraw the screen, causing trouble.
Solution: Set updating_screen in ui_breakcheck().
https://github.com/vim/vim/commit/e3caa1109072b9655f8d5103c92efd73177f8577
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 10a184ad5b..3823fb2a23 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -507,7 +507,7 @@ void update_single_line(win_T *wp, linenr_T lnum) row += wp->w_lines[j].wl_size; } } - need_cursor_line_redraw = FALSE; + need_cursor_line_redraw = false; updating_screen = false; } @@ -7328,12 +7328,11 @@ void screen_resize(int width, int height) { static int busy = FALSE; - /* - * Avoid recursiveness, can happen when setting the window size causes - * another window-changed signal. - */ - if (busy) + // Avoid recursiveness, can happen when setting the window size causes + // another window-changed signal. + if (updating_screen || busy) { return; + } if (width < 0 || height < 0) /* just checking... */ return; |