aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/funcs.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-15 19:26:32 +0800
committerGitHub <noreply@github.com>2022-07-15 19:26:32 +0800
commitb9f15caf5ca879841afe582f68838af208b86142 (patch)
tree783afc0e6f1cc54610b20fe27aeb26625158b5af /src/nvim/eval/funcs.c
parent564d99c89a3d9a236df758d320cc38abc50215ec (diff)
parent0cf5cd1ac9c8ec31c1d2f1b1a6585153a45fc4e9 (diff)
downloadrneovim-b9f15caf5ca879841afe582f68838af208b86142.tar.gz
rneovim-b9f15caf5ca879841afe582f68838af208b86142.tar.bz2
rneovim-b9f15caf5ca879841afe582f68838af208b86142.zip
Merge pull request #19375 from zeertzjq/vim-8.2.0403
vim-patch:8.1.1547,8.2.0403: when 'buftype' is "nofile" there is no overwrite check
Diffstat (limited to 'src/nvim/eval/funcs.c')
-rw-r--r--src/nvim/eval/funcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index 63c25fe815..f231146d7c 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -482,7 +482,7 @@ static buf_T *find_buffer(typval_T *avar)
* buffer, these don't use the full path. */
FOR_ALL_BUFFERS(bp) {
if (bp->b_fname != NULL
- && (path_with_url(bp->b_fname) || bt_nofile(bp))
+ && (path_with_url(bp->b_fname) || bt_nofilename(bp))
&& STRCMP(bp->b_fname, avar->vval.v_string) == 0) {
buf = bp;
break;