vim-patch:9.0.0263: too many #ifdefs

Problem:    Too many #ifdefs.
Solution:   Make some functions always available.
6d4b2f54df

N/A patches for version.c:

vim-patch:9.0.0262: build failure without the +quickfix feature

Problem:    Build failure without the +quickfix feature.
Solution:   Add #ifdef.
2e6dcbc445

vim-patch:9.0.0266: compiler warning for unused argument

Problem:    Compiler warning for unused argument.
Solution:   Add UNUSED.
340dafd155

vim-patch:9.0.0268: build error without the +eval feature

Problem:    Build error without the +eval feature.
Solution:   Remove #ifdef.
0166e398d1
This commit is contained in:
zeertzjq
2022-08-26 06:54:11 +08:00
parent 6e9980fc3b
commit 4dd34989cd
2 changed files with 2 additions and 4 deletions

View File

@@ -96,8 +96,7 @@ void changed(void)
// Create a swap file if that is wanted. // Create a swap file if that is wanted.
// Don't do this for "nofile" and "nowrite" buffer types. // Don't do this for "nofile" and "nowrite" buffer types.
if (curbuf->b_may_swap if (curbuf->b_may_swap && !bt_dontwrite(curbuf)) {
&& !bt_dontwrite(curbuf)) {
bool save_need_wait_return = need_wait_return; bool save_need_wait_return = need_wait_return;
need_wait_return = false; need_wait_return = false;

View File

@@ -1880,8 +1880,7 @@ int do_write(exarg_T *eap)
// Writing to the current file is not allowed in readonly mode // Writing to the current file is not allowed in readonly mode
// and a file name is required. // and a file name is required.
// "nofile" and "nowrite" buffers cannot be written implicitly either. // "nofile" and "nowrite" buffers cannot be written implicitly either.
if (!other && (bt_dontwrite_msg(curbuf) if (!other && (bt_dontwrite_msg(curbuf) || check_fname() == FAIL
|| check_fname() == FAIL
|| check_readonly(&eap->forceit, curbuf))) { || check_readonly(&eap->forceit, curbuf))) {
goto theend; goto theend;
} }