mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
vim-patch:8.0.0069
Problem: Compiler warning for self-comparison.
Solution: Define ONE_WINDOW and add vim/vim#ifdef.
a1f4cb93ba
This commit is contained in:
@@ -5976,7 +5976,7 @@ static void ex_quit(exarg_T *eap)
|
||||
// specified. Example:
|
||||
// :h|wincmd w|1q - don't quit
|
||||
// :h|wincmd w|q - quit
|
||||
if (only_one_window() && (firstwin == lastwin || eap->addr_count == 0)) {
|
||||
if (only_one_window() && (ONE_WINDOW || eap->addr_count == 0)) {
|
||||
getout(0);
|
||||
}
|
||||
/* close window; may free buffer */
|
||||
|
Reference in New Issue
Block a user