comparison src/main.c @ 13060:1bdc12630fc0 v8.0.1405

patch 8.0.1405: duplicated code for getting a typed character commit https://github.com/vim/vim/commit/c9e649ae816cdff0d1da8a97d40e695c6d3991bd Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 18 18:14:47 2017 +0100 patch 8.0.1405: duplicated code for getting a typed character Problem: Duplicated code for getting a typed character. CursorHold is called too often in the GUI. (lilydjwg) Solution: Refactor code to move code up from mch_inchar(). Don't fire CursorHold if feedkeys() was used. (closes #2451)
author Christian Brabandt <cb@256bit.org>
date Mon, 18 Dec 2017 18:15:05 +0100
parents 1293c33ff452
children 808625d4b71b
comparison
equal deleted inserted replaced
13059:5c8106a75f25 13060:1bdc12630fc0
617 if (gui.in_use) 617 if (gui.in_use)
618 { 618 {
619 # ifdef FEAT_SUN_WORKSHOP 619 # ifdef FEAT_SUN_WORKSHOP
620 if (!usingSunWorkShop) 620 if (!usingSunWorkShop)
621 # endif 621 # endif
622 gui_wait_for_chars(50L); 622 gui_wait_for_chars(50L, typebuf.tb_change_cnt);
623 TIME_MSG("GUI delay"); 623 TIME_MSG("GUI delay");
624 } 624 }
625 #endif 625 #endif
626 626
627 #if defined(FEAT_GUI_PHOTON) && defined(FEAT_CLIPBOARD) 627 #if defined(FEAT_GUI_PHOTON) && defined(FEAT_CLIPBOARD)