commit | 2ab375e54ef4eac438d1aef8b99d9e71f2fa0c63 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Feb 10 22:23:06 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Feb 10 22:23:06 2016 +0100 |
tree | d62682f35f89d4821d4b1a5a8f71c71fb7b9745b | |
parent | f6157284de71d8881f3b89fbd79d1ecbf842929f [diff] [blame] |
patch 7.4.1300 Problem: Cannot test CursorMovedI because there is typeahead. Solution: Add disable_char_avail_for_testing().
diff --git a/src/getchar.c b/src/getchar.c index 2c57090..0347514 100644 --- a/src/getchar.c +++ b/src/getchar.c
@@ -1888,6 +1888,12 @@ { int retval; +#ifdef FEAT_EVAL + /* When disable_char_avail_for_testing(1) was called pretend there is no + * typeahead. */ + if (disable_char_avail_for_testing) + return FALSE; +#endif ++no_mapping; retval = vpeekc(); --no_mapping;