remove disable_char_avail_for_testing()

test_cursor_func.vim hangs at the call to
disable_char_avail_for_testing(). The test does not actually need this
function (and it correctly fails if the fix from 7.4.1300 is reverted).
Given that disable_char_avail_for_testing is a gigantic hack, if we can
avoid it let's do so.
This commit is contained in:
Justin M. Keyes
2016-04-26 23:29:55 -04:00
parent 0d6fe73d7b
commit e4146dd7df
6 changed files with 1 additions and 28 deletions

View File

@@ -1562,11 +1562,6 @@ 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;