diff src/quickfix.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 d52d97bf675e
children 66f1b5bf3fa6
line wrap: on
line diff
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2137,7 +2137,7 @@ win_found:
 	 * If there is only one window and it is the quickfix window, create a
 	 * new one above the quickfix window.
 	 */
-	if (((firstwin == lastwin) && bt_quickfix(curbuf)) || !usable_win)
+	if ((ONE_WINDOW && bt_quickfix(curbuf)) || !usable_win)
 	{
 	    flags = WSP_ABOVE;
 	    if (ll_ref != NULL)