diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-24 18:30:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-24 18:30:35 +0100 |
commit | 38274051c066ff0a28582aae5c2edf47825d9f57 (patch) | |
tree | 19fba05c7d751fd3ee9aaa20b6a65675a6001c3e /src/nvim/ex_getln.c | |
parent | a62ec4eb989f41ace8e6b7f085349a2bce964d68 (diff) | |
parent | 7214d0bc846179a862e8d3061d00270a6caa0d7b (diff) | |
download | rneovim-38274051c066ff0a28582aae5c2edf47825d9f57.tar.gz rneovim-38274051c066ff0a28582aae5c2edf47825d9f57.tar.bz2 rneovim-38274051c066ff0a28582aae5c2edf47825d9f57.zip |
Merge pull request #6323 from justinmk/vimpatches
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index d99c8d02f7..2600f484dc 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -5227,10 +5227,8 @@ static int ex_window(void) invalidate_botline(); redraw_later(SOME_VALID); - /* Save the command line info, can be used recursively. */ - save_ccline = ccline; - ccline.cmdbuff = NULL; - ccline.cmdprompt = NULL; + // Save the command line info, can be used recursively. + save_cmdline(&save_ccline); /* No Ex mode here! */ exmode_active = 0; @@ -5264,8 +5262,8 @@ static int ex_window(void) /* Restore KeyTyped in case it is modified by autocommands */ KeyTyped = save_KeyTyped; - /* Restore the command line info. */ - ccline = save_ccline; + // Restore the command line info. + restore_cmdline(&save_ccline); cmdwin_type = 0; exmode_active = save_exmode; |