forked from aniani/vim
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:
5
src/ui.c
5
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
|
||||
|
Reference in New Issue
Block a user