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:
KillTheMule
2016-04-18 21:06:04 +02:00
committed by Justin M. Keyes
parent ad99d0bf7e
commit 11fd965554
5 changed files with 42 additions and 5 deletions

View File

@@ -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;