summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-04-06 20:00:19 +0200
committerBram Moolenaar <Bram@vim.org>2019-04-06 20:00:19 +0200
commit6bc9305a02f77136e65347951618575b2033cbc9 (patch)
tree3676930ee5adf93581682142d845abcadfd3b5db /src/ui.c
parent3d3f21764a8003b90216ae6fb988af1dae5f5d70 (diff)
downloadvim-git-6bc9305a02f77136e65347951618575b2033cbc9.tar.gz
patch 8.1.1127: getwinpos() doesn't work in terminal on MS-Windows consolev8.1.1127
Problem: getwinpos() doesn't work in terminal on MS-Windows console. Solution: Adjust #ifdefs. Disable test for MS-Windows console.
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui.c b/src/ui.c
index f78c570c8..72148760d 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -627,10 +627,9 @@ ui_new_shellsize(void)
}
}
-#if (defined(FEAT_EVAL) \
+#if ((defined(FEAT_EVAL) || defined(FEAT_TERMINAL)) \
&& (defined(FEAT_GUI) \
|| (defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE)))) \
- || defined(FEAT_TERMINAL) \
|| defined(PROTO)
/*
* Get the window position in pixels, if possible.
@@ -645,6 +644,8 @@ ui_get_winpos(int *x, int *y, varnumber_T timeout)
# endif
# if defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE)
return term_get_winpos(x, y, timeout);
+# else
+ return FAIL;
# endif
}
#endif