diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/aucmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/aucmd.c b/src/nvim/aucmd.c index 8544a3d2e0..802fc9de57 100644 --- a/src/nvim/aucmd.c +++ b/src/nvim/aucmd.c @@ -41,7 +41,6 @@ void init_default_autocmds(void) // open terminals when opening files that start with term:// #define PROTO "term://" do_cmdline_cmd("augroup nvim_terminal"); - do_cmdline_cmd("autocmd!"); do_cmdline_cmd("autocmd BufReadCmd " PROTO "* ++nested " "if !exists('b:term_title')|call termopen(" // Capture the command string @@ -56,7 +55,7 @@ void init_default_autocmds(void) // limit syntax synchronization in the command window do_cmdline_cmd("augroup nvim_cmdwin"); - do_cmdline_cmd("autocmd! CmdWinEnter [:>] exe 'syntax sync minlines=1 maxlines='..&cmdwinheight"); + do_cmdline_cmd("autocmd! CmdwinEnter [:>] syntax sync minlines=1 maxlines=1"); do_cmdline_cmd("augroup END"); } |