comparison src/terminal.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 c1698187c482
children f28ef3d27f91
comparison
equal deleted inserted replaced
16244:a15ec9bee99d 16245:e0a6298bd70f
3864 3864
3865 // We recognize only CSI 13 t 3865 // We recognize only CSI 13 t
3866 if (command != 't' || argcount != 1 || args[0] != 13) 3866 if (command != 't' || argcount != 1 || args[0] != 13)
3867 return 0; // not handled 3867 return 0; // not handled
3868 3868
3869 // When getting the window position fails it results in zero/zero. 3869 // When getting the window position is not possible or it fails it results
3870 // in zero/zero.
3871 #if defined(FEAT_GUI) || (defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE))
3870 (void)ui_get_winpos(&x, &y, (varnumber_T)100); 3872 (void)ui_get_winpos(&x, &y, (varnumber_T)100);
3873 #endif
3871 3874
3872 FOR_ALL_WINDOWS(wp) 3875 FOR_ALL_WINDOWS(wp)
3873 if (wp->w_buffer == term->tl_buffer) 3876 if (wp->w_buffer == term->tl_buffer)
3874 break; 3877 break;
3875 if (wp != NULL) 3878 if (wp != NULL)