aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-07-23 10:12:05 +0800
committerckelsel <ckelsel@hotmail.com>2017-07-23 10:34:41 +0800
commitad07e9c7fcabeb991f0849c9e11b5b225cf470fd (patch)
treee2d669b869ea9a6ab56c457fa314dd273e0c1b8a /src/nvim/quickfix.c
parent253f6f3bbfd16b7aeb2f72714c1d5d1c88a3478a (diff)
downloadrneovim-ad07e9c7fcabeb991f0849c9e11b5b225cf470fd.tar.gz
rneovim-ad07e9c7fcabeb991f0849c9e11b5b225cf470fd.tar.bz2
rneovim-ad07e9c7fcabeb991f0849c9e11b5b225cf470fd.zip
vim-patch:8.0.0069
Problem: Compiler warning for self-comparison. Solution: Define ONE_WINDOW and add vim/vim#ifdef. https://github.com/vim/vim/commit/a1f4cb93ba50ea9e40cd4b1f5592b8a6d1398660
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index f17075f0c4..4997209556 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -1878,7 +1878,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)
flags |= WSP_NEWLOC;