diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-10-10 18:42:01 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-10-15 16:36:00 +0200 |
commit | 4b3e51d4ee3018cf59d81578e2320b79fb614652 (patch) | |
tree | 3d1aef8c23004b58bb89964222cb66b601ba381d /src/nvim/ex_getln.c | |
parent | 68f3da5f619d2151c8dd88d6758c5c86015cdab1 (diff) | |
download | rneovim-4b3e51d4ee3018cf59d81578e2320b79fb614652.tar.gz rneovim-4b3e51d4ee3018cf59d81578e2320b79fb614652.tar.bz2 rneovim-4b3e51d4ee3018cf59d81578e2320b79fb614652.zip |
ops: save and restore clipboard batch status when entering cmdline window
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 80f9b47340..54e5bcb9ff 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -5718,6 +5718,7 @@ static int ex_window(void) i = RedrawingDisabled; RedrawingDisabled = 0; + int save_count = save_batch_count(); /* * Call the main loop until <CR> or CTRL-C is typed. @@ -5726,6 +5727,7 @@ static int ex_window(void) normal_enter(true, false); RedrawingDisabled = i; + restore_batch_count(save_count); int save_KeyTyped = KeyTyped; |