Mercurial > vim
diff src/ex_docmd.c @ 10349:cf988222b150 v8.0.0069
commit https://github.com/vim/vim/commit/a1f4cb93ba50ea9e40cd4b1f5592b8a6d1398660
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 6 15:25:42 2016 +0100
patch 8.0.0069
Problem: Compiler warning for self-comparison.
Solution: Define ONE_WINDOW and add #ifdef.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 06 Nov 2016 15:30:05 +0100 |
parents | 6d8b2da002e9 |
children | 59d01e335858 |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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