aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-15 17:53:00 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-15 18:27:21 +0800
commit4a64cdafd64198d3607fabaed8fc54e473614269 (patch)
tree7858c42069364b5becbf413685676e96be14e7ea /src/nvim/ex_cmds.c
parent564d99c89a3d9a236df758d320cc38abc50215ec (diff)
downloadrneovim-4a64cdafd64198d3607fabaed8fc54e473614269.tar.gz
rneovim-4a64cdafd64198d3607fabaed8fc54e473614269.tar.bz2
rneovim-4a64cdafd64198d3607fabaed8fc54e473614269.zip
vim-patch:8.1.1547: functionality of bt_nofile() is confusing
Problem: Functionality of bt_nofile() is confusing. Solution: Split into bt_nofile() and bt_nofilename(). https://github.com/vim/vim/commit/26910de8b0da6abab87bd5a397330f9cbe483309
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 9a5cf9f50f..28665136fc 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -1990,7 +1990,7 @@ int check_overwrite(exarg_T *eap, buf_T *buf, char *fname, char *ffname, int oth
&& vim_strchr(p_cpo, CPO_OVERNEW) == NULL)
|| (buf->b_flags & BF_READERR))
&& !p_wa
- && !bt_nofile(buf)
+ && !bt_nofilename(buf)
&& os_path_exists((char_u *)ffname)) {
if (!eap->forceit && !eap->append) {
#ifdef UNIX