diff src/buffer.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 6ab770e97152
children 59d01e335858
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4935,7 +4935,7 @@ do_arg_all(
 		    }
 #ifdef FEAT_WINDOWS
 		    /* don't close last window */
-		    if (firstwin == lastwin
+		    if (ONE_WINDOW
 			    && (first_tabpage->tp_next == NULL || !had_tab))
 #endif
 			use_firstwin = TRUE;