comparison src/ui.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 3b79a3029947
children f28ef3d27f91
comparison
equal deleted inserted replaced
16244:a15ec9bee99d 16245:e0a6298bd70f
625 #endif 625 #endif
626 mch_new_shellsize(); 626 mch_new_shellsize();
627 } 627 }
628 } 628 }
629 629
630 #if (defined(FEAT_EVAL) \ 630 #if ((defined(FEAT_EVAL) || defined(FEAT_TERMINAL)) \
631 && (defined(FEAT_GUI) \ 631 && (defined(FEAT_GUI) \
632 || (defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE)))) \ 632 || (defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE)))) \
633 || defined(FEAT_TERMINAL) \
634 || defined(PROTO) 633 || defined(PROTO)
635 /* 634 /*
636 * Get the window position in pixels, if possible. 635 * Get the window position in pixels, if possible.
637 * Return FAIL when not possible. 636 * Return FAIL when not possible.
638 */ 637 */
643 if (gui.in_use) 642 if (gui.in_use)
644 return gui_mch_get_winpos(x, y); 643 return gui_mch_get_winpos(x, y);
645 # endif 644 # endif
646 # if defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE) 645 # if defined(HAVE_TGETENT) && defined(FEAT_TERMRESPONSE)
647 return term_get_winpos(x, y, timeout); 646 return term_get_winpos(x, y, timeout);
647 # else
648 return FAIL;
648 # endif 649 # endif
649 } 650 }
650 #endif 651 #endif
651 652
652 void 653 void