0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2019-04-06 20:00:19 +02:00
parent 3d3f21764a
commit 6bc9305a02
5 changed files with 22 additions and 11 deletions

View File

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