mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 13:08:33 +00:00
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:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user