comparison src/terminal.c @ 16253:f28ef3d27f91 v8.1.1131

patch 8.1.1131: getwinpos() does not work in the MS-Windows console commit https://github.com/vim/vim/commit/16c34c37659e6afca74169969bdacb6b866548c9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 6 22:01:24 2019 +0200 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().
author Bram Moolenaar <Bram@vim.org>
date Sat, 06 Apr 2019 22:15:04 +0200
parents e0a6298bd70f
children 1298cb5c1f72
comparison
equal deleted inserted replaced
16252:b3d817081055 16253:f28ef3d27f91
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 is not possible or it fails it results 3869 // When getting the window position is not possible or it fails it results
3870 // in zero/zero. 3870 // in zero/zero.
3871 #if defined(FEAT_GUI) || (defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE)) 3871 #if defined(FEAT_GUI) \
3872 || (defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE)) \
3873 || defined(MSWIN)
3872 (void)ui_get_winpos(&x, &y, (varnumber_T)100); 3874 (void)ui_get_winpos(&x, &y, (varnumber_T)100);
3873 #endif 3875 #endif
3874 3876
3875 FOR_ALL_WINDOWS(wp) 3877 FOR_ALL_WINDOWS(wp)
3876 if (wp->w_buffer == term->tl_buffer) 3878 if (wp->w_buffer == term->tl_buffer)