diff options
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index c0bd8cc8fd..c6716dc870 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -268,13 +268,11 @@ edit ( // set Insstart_orig to Insstart update_Insstart_orig = true; -#ifdef HAVE_SANDBOX - /* Don't allow inserting in the sandbox. */ + // Don't allow inserting in the sandbox. if (sandbox != 0) { EMSG(_(e_sandbox)); return FALSE; } -#endif /* Don't allow changes in the buffer while editing the cmdline. The * caller of getcmdline() may get confused. */ if (textlock != 0) { @@ -584,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. @@ -4703,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; @@ -4964,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) @@ -6731,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 @@ -8058,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 */ |