aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-02-11 10:37:13 +0100
committerGitHub <noreply@github.com>2022-02-11 10:37:13 +0100
commit2db0a52074ab6b822edc1fa04eca399d4e727784 (patch)
treea3af2f1826457c5895dd446748f36855fb16167a /src/nvim/ex_getln.c
parent851252f79ddaaca5456b287342cd36130c76ff38 (diff)
parent85ae04dbfd405343b10c400d40e95334a44cc978 (diff)
downloadrneovim-2db0a52074ab6b822edc1fa04eca399d4e727784.tar.gz
rneovim-2db0a52074ab6b822edc1fa04eca399d4e727784.tar.bz2
rneovim-2db0a52074ab6b822edc1fa04eca399d4e727784.zip
Merge pull request #17360 from lewis6991/fix-window-close
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