diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-26 07:37:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 07:37:57 +0800 |
commit | c12f6002a15b27ada972b997bc0950f37d06027d (patch) | |
tree | 5d38ca02ea5ca71cbd73e507adca43a44d2c9f89 /src/nvim/ex_cmds.c | |
parent | 6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0 (diff) | |
parent | 207fe4810e893bd4b777e4e3b212055e8dfb05ac (diff) | |
download | rneovim-c12f6002a15b27ada972b997bc0950f37d06027d.tar.gz rneovim-c12f6002a15b27ada972b997bc0950f37d06027d.tar.bz2 rneovim-c12f6002a15b27ada972b997bc0950f37d06027d.zip |
Merge pull request #19950 from zeertzjq/vim-9.0.0270
vim-patch:9.0.{0262,0263,0266,0268,0270}: too many #ifdefs
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index e08e977ff5..69208cff99 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1880,8 +1880,7 @@ int do_write(exarg_T *eap) // Writing to the current file is not allowed in readonly mode // and a file name is required. // "nofile" and "nowrite" buffers cannot be written implicitly either. - if (!other && (bt_dontwrite_msg(curbuf) - || check_fname() == FAIL + if (!other && (bt_dontwrite_msg(curbuf) || check_fname() == FAIL || check_readonly(&eap->forceit, curbuf))) { goto theend; } |