aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/tag.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-24 18:31:07 +0800
committerGitHub <noreply@github.com>2023-01-24 18:31:07 +0800
commitc6ab8dfc15e0f6f1a805ce2145e2b4f0072b33d1 (patch)
tree0e39f9d3c235f63aa7ee57dc7f4ce237b7d3c9f7 /src/nvim/tag.c
parent39630265c476e64b2a544155e52b7a133222a551 (diff)
downloadrneovim-c6ab8dfc15e0f6f1a805ce2145e2b4f0072b33d1.tar.gz
rneovim-c6ab8dfc15e0f6f1a805ce2145e2b4f0072b33d1.tar.bz2
rneovim-c6ab8dfc15e0f6f1a805ce2145e2b4f0072b33d1.zip
revert: "refactor(win_close): remove "force", don't pass on "free_buf" (#21921)" (#21979)
This reverts commit 0371d0f7afa5e01dd2ac8bbd3abcf0f7454872b3. > 'bufhidden' option exists. I don't think we should assume autoclosing windows are fine just because 'hidden' is set.
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r--src/nvim/tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c
index 4e3a45fed7..18c7684584 100644
--- a/src/nvim/tag.c
+++ b/src/nvim/tag.c
@@ -3093,7 +3093,7 @@ static int jumpto_tag(const char *lbuf_arg, int forceit, int keep_help)
} else {
RedrawingDisabled--;
if (postponed_split) { // close the window
- win_close(curwin, false);
+ win_close(curwin, false, false);
postponed_split = 0;
}
}