diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-06 20:00:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-06 20:00:19 +0200 |
commit | 6bc9305a02f77136e65347951618575b2033cbc9 (patch) | |
tree | 3676930ee5adf93581682142d845abcadfd3b5db /src/terminal.c | |
parent | 3d3f21764a8003b90216ae6fb988af1dae5f5d70 (diff) | |
download | vim-git-6bc9305a02f77136e65347951618575b2033cbc9.tar.gz |
patch 8.1.1127: getwinpos() doesn't work in terminal on MS-Windows consolev8.1.1127
Problem: getwinpos() doesn't work in terminal on MS-Windows console.
Solution: Adjust #ifdefs. Disable test for MS-Windows console.
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c index 34dea0312..4ff28b851 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -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) |