aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-04-26 23:29:55 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-04-26 23:32:01 -0400
commite4146dd7df0f1ba932a01a79d6dd511914763c72 (patch)
tree4edd1dad482dd469403318913f0fdcabe5c5ef01 /src/nvim/getchar.c
parent0d6fe73d7b4dbba5bcea4559896c92f9c7e3f10a (diff)
downloadrneovim-e4146dd7df0f1ba932a01a79d6dd511914763c72.tar.gz
rneovim-e4146dd7df0f1ba932a01a79d6dd511914763c72.tar.bz2
rneovim-e4146dd7df0f1ba932a01a79d6dd511914763c72.zip
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.
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index b5e1e586bd..cf4174f702 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -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;