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

@@ -3866,8 +3866,11 @@ parse_csi(
if (command != 't' || argcount != 1 || args[0] != 13)
return 0; // not handled
// When getting the window position fails it results in zero/zero.
// When getting the window position is not possible or it fails it results
// in zero/zero.
#if defined(FEAT_GUI) || (defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE))
(void)ui_get_winpos(&x, &y, (varnumber_T)100);
#endif
FOR_ALL_WINDOWS(wp)
if (wp->w_buffer == term->tl_buffer)