forked from aniani/vim
patch 8.1.1131: getwinpos() does not work in the MS-Windows console
Problem: getwinpos() does not work in the MS-Windows console. Solution: Implement getwinpos().
This commit is contained in:
9
src/ui.c
9
src/ui.c
@@ -629,6 +629,7 @@ ui_new_shellsize(void)
|
||||
|
||||
#if ((defined(FEAT_EVAL) || defined(FEAT_TERMINAL)) \
|
||||
&& (defined(FEAT_GUI) \
|
||||
|| defined(MSWIN) \
|
||||
|| (defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE)))) \
|
||||
|| defined(PROTO)
|
||||
/*
|
||||
@@ -642,10 +643,14 @@ ui_get_winpos(int *x, int *y, varnumber_T timeout)
|
||||
if (gui.in_use)
|
||||
return gui_mch_get_winpos(x, y);
|
||||
# endif
|
||||
# if defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE)
|
||||
return term_get_winpos(x, y, timeout);
|
||||
# if defined(MSWIN) && !defined(FEAT_GUI)
|
||||
return mch_get_winpos(x, y);
|
||||
# else
|
||||
# if defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE)
|
||||
return term_get_winpos(x, y, timeout);
|
||||
# else
|
||||
return FAIL;
|
||||
# endif
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user