mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-patch:7.4.1300
Problem: Cannot test CursorMovedI because there is typeahead.
Solution: Add disable_char_avail_for_testing().
2ab375e54e
Most of it manually applied.
This commit is contained in:

committed by
Justin M. Keyes

parent
ad99d0bf7e
commit
11fd965554
@@ -1562,6 +1562,11 @@ int char_avail(void)
|
||||
{
|
||||
int retval;
|
||||
|
||||
// When disable_char_avail_for_testing(1) was called pretend
|
||||
// there is no typeahead
|
||||
if (disable_char_avail_for_testing) {
|
||||
return FALSE;
|
||||
}
|
||||
++no_mapping;
|
||||
retval = vpeekc();
|
||||
--no_mapping;
|
||||
|
Reference in New Issue
Block a user