diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-04-06 22:01:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-04-06 22:01:24 +0200 |
commit | 16c34c37659e6afca74169969bdacb6b866548c9 (patch) | |
tree | b10c296c632b2b19f39552989c4f4cb06d4289fd /src/terminal.c | |
parent | 11640238289969a278876596a380952ffe25aad3 (diff) | |
download | vim-git-16c34c37659e6afca74169969bdacb6b866548c9.tar.gz |
patch 8.1.1131: getwinpos() does not work in the MS-Windows consolev8.1.1131
Problem: getwinpos() does not work in the MS-Windows console.
Solution: Implement getwinpos().
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c index 4ff28b851..01cabf021 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -3868,7 +3868,9 @@ parse_csi( // 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)) +#if defined(FEAT_GUI) \ + || (defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE)) \ + || defined(MSWIN) (void)ui_get_winpos(&x, &y, (varnumber_T)100); #endif |