aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-02-17 23:16:06 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-03-05 19:03:36 -0500
commit4d7b31fd61695e7a1be2b662fe729a81112ef89b (patch)
tree51ed30b51c4de241b0e0543707591a83f6275883 /src/nvim/edit.c
parent49e71641650d07c2cda7756e3a8b88e6ec42c1d8 (diff)
downloadrneovim-4d7b31fd61695e7a1be2b662fe729a81112ef89b.tar.gz
rneovim-4d7b31fd61695e7a1be2b662fe729a81112ef89b.tar.bz2
rneovim-4d7b31fd61695e7a1be2b662fe729a81112ef89b.zip
Macro cleanup: USE_ON_FLY_SCROLL
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index fcbbc8ab7f..c6716dc870 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -582,9 +582,6 @@ edit (
old_topline = curwin->w_topline;
old_topfill = curwin->w_topfill;
-#ifdef USE_ON_FLY_SCROLL
- dont_scroll = FALSE; /* allow scrolling here */
-#endif
/*
* Get a character for Insert mode. Ignore K_IGNORE.
@@ -4701,9 +4698,6 @@ int get_literal(void)
if (got_int)
return Ctrl_C;
-#ifdef USE_ON_FLY_SCROLL
- dont_scroll = TRUE; /* disallow scrolling here */
-#endif
++no_mapping; /* don't map the next key hits */
cc = 0;
i = 0;
@@ -4962,9 +4956,6 @@ insertchar (
* Don't do this when there an InsertCharPre autocommand is defined,
* because we need to fire the event for every character.
*/
-#ifdef USE_ON_FLY_SCROLL
- dont_scroll = FALSE; /* allow scrolling here */
-#endif
if ( !ISSPECIAL(c)
&& (!has_mbyte || (*mb_char2len)(c) == 1)
@@ -6729,9 +6720,6 @@ static void ins_reg(void)
add_to_showcmd_c(Ctrl_R);
}
-#ifdef USE_ON_FLY_SCROLL
- dont_scroll = TRUE; /* disallow scrolling here */
-#endif
/*
* Don't map the register name. This also prevents the mode message to be
@@ -8056,9 +8044,6 @@ static int ins_digraph(void)
add_to_showcmd_c(Ctrl_K);
}
-#ifdef USE_ON_FLY_SCROLL
- dont_scroll = TRUE; /* disallow scrolling here */
-#endif
/* don't map the digraph chars. This also prevents the
* mode message to be deleted when ESC is hit */