Mercurial > vim
diff src/ui.c @ 16245:e0a6298bd70f v8.1.1127
patch 8.1.1127: getwinpos() doesn't work in terminal on MS-Windows console
commit https://github.com/vim/vim/commit/6bc9305a02f77136e65347951618575b2033cbc9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 6 20:00:19 2019 +0200
patch 8.1.1127: getwinpos() doesn't work in terminal on MS-Windows console
Problem: getwinpos() doesn't work in terminal on MS-Windows console.
Solution: Adjust #ifdefs. Disable test for MS-Windows console.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 06 Apr 2019 20:15:03 +0200 |
parents | 3b79a3029947 |
children | f28ef3d27f91 |
line wrap: on
line diff
--- 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_ # endif # if defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE) return term_get_winpos(x, y, timeout); +# else + return FAIL; # endif } #endif