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

@@ -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)