Mercurial > vim
diff 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 |
line wrap: on
line diff
--- 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