aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorRom Grk <romgrk.cc@gmail.com>2021-04-17 17:33:59 -0400
committerLewis Russell <lewis6991@gmail.com>2022-02-10 15:26:40 +0000
commit85ae04dbfd405343b10c400d40e95334a44cc978 (patch)
treefb88cdc7e9f6e51537440da389bcef4e6c0a3893 /src/nvim/ex_getln.c
parenta73360a09a54c186f2df6e167a8be1f1a1d8c62a (diff)
downloadrneovim-85ae04dbfd405343b10c400d40e95334a44cc978.tar.gz
rneovim-85ae04dbfd405343b10c400d40e95334a44cc978.tar.bz2
rneovim-85ae04dbfd405343b10c400d40e95334a44cc978.zip
fix: close floating windows when calling win_close()
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index f81f49a174..ed4475eb1a 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -6563,7 +6563,7 @@ static int open_cmdwin(void)
set_bufref(&bufref, curbuf);
win_goto(old_curwin);
if (win_valid(wp) && wp != curwin) {
- win_close(wp, true);
+ win_close(wp, true, false);
}
// win_close() may have already wiped the buffer when 'bh' is