Mercurial > vim
comparison src/ui.c @ 10771:abc27e523e2a v8.0.0275
patch 8.0.0275: the screen may be updated at the wrong time
commit https://github.com/vim/vim/commit/e3caa1109072b9655f8d5103c92efd73177f8577
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 31 22:07:42 2017 +0100
patch 8.0.0275: the screen may be updated at the wrong time
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().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 31 Jan 2017 22:15:04 +0100 |
parents | 175b1116f96a |
children | 778c10516955 |
comparison
equal
deleted
inserted
replaced
10770:52c8f9e0feac | 10771:abc27e523e2a |
---|---|
361 * This is useful to read input on channels. | 361 * This is useful to read input on channels. |
362 */ | 362 */ |
363 void | 363 void |
364 ui_breakcheck_force(int force) | 364 ui_breakcheck_force(int force) |
365 { | 365 { |
366 int save_us = updating_screen; | |
367 | |
368 /* We do not want gui_resize_shell() to redraw the screen here. */ | |
369 ++updating_screen; | |
370 | |
366 #ifdef FEAT_GUI | 371 #ifdef FEAT_GUI |
367 if (gui.in_use) | 372 if (gui.in_use) |
368 gui_mch_update(); | 373 gui_mch_update(); |
369 else | 374 else |
370 #endif | 375 #endif |
371 mch_breakcheck(force); | 376 mch_breakcheck(force); |
377 | |
378 updating_screen = save_us; | |
372 } | 379 } |
373 | 380 |
374 /***************************************************************************** | 381 /***************************************************************************** |
375 * Functions for copying and pasting text between applications. | 382 * Functions for copying and pasting text between applications. |
376 * This is always included in a GUI version, but may also be included when the | 383 * This is always included in a GUI version, but may also be included when the |