1
0
forked from aniani/vim

patch 8.0.0069

Problem:    Compiler warning for self-comparison.
Solution:   Define ONE_WINDOW and add #ifdef.
This commit is contained in:
Bram Moolenaar
2016-11-06 15:25:42 +01:00
parent 25de4c232d
commit a1f4cb93ba
8 changed files with 21 additions and 14 deletions

View File

@@ -7239,7 +7239,7 @@ ex_quit(exarg_T *eap)
* :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))
#endif
getout(0);
#ifdef FEAT_WINDOWS