Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
10348:c78513465e6e | 10349:cf988222b150 |
---|---|
7237 * still open. In that case only quit, if no address has been | 7237 * still open. In that case only quit, if no address has been |
7238 * specified. Example: | 7238 * specified. Example: |
7239 * :h|wincmd w|1q - don't quit | 7239 * :h|wincmd w|1q - don't quit |
7240 * :h|wincmd w|q - quit | 7240 * :h|wincmd w|q - quit |
7241 */ | 7241 */ |
7242 if (only_one_window() && (firstwin == lastwin || eap->addr_count == 0)) | 7242 if (only_one_window() && (ONE_WINDOW || eap->addr_count == 0)) |
7243 #endif | 7243 #endif |
7244 getout(0); | 7244 getout(0); |
7245 #ifdef FEAT_WINDOWS | 7245 #ifdef FEAT_WINDOWS |
7246 # ifdef FEAT_GUI | 7246 # ifdef FEAT_GUI |
7247 need_mouse_correct = TRUE; | 7247 need_mouse_correct = TRUE; |