diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-06 20:00:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-06 20:00:19 +0200 |
commit | 6bc9305a02f77136e65347951618575b2033cbc9 (patch) | |
tree | 3676930ee5adf93581682142d845abcadfd3b5db /src/ui.c | |
parent | 3d3f21764a8003b90216ae6fb988af1dae5f5d70 (diff) | |
download | vim-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |