comparison src/vim.h @ 18542:244b336b94ce v8.1.2265

patch 8.1.2265: when popup with "botleft" does not fit it flips incorrectly Commit: https://github.com/vim/vim/commit/638a4a7508082f8700b135953e4f9465f675a0f5 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 6 19:25:22 2019 +0100 patch 8.1.2265: when popup with "botleft" does not fit it flips incorrectly Problem: When popup with "botleft" does not fit it flips incorrectly. Solution: Only flip when there is more space on the other side. Add the "posinvert" option to disable flipping and do it in both directions if enabled. (closes #5151)
author Bram Moolenaar <Bram@vim.org>
date Wed, 06 Nov 2019 19:30:03 +0100
parents 9e6d5a4abb1c
children fa995154904e
comparison
equal deleted inserted replaced
18541:cb6c4e282681 18542:244b336b94ce
630 #define POPF_DRAG 0x20 // popup can be moved by dragging 630 #define POPF_DRAG 0x20 // popup can be moved by dragging
631 #define POPF_RESIZE 0x40 // popup can be resized by dragging 631 #define POPF_RESIZE 0x40 // popup can be resized by dragging
632 #define POPF_MAPPING 0x80 // mapping keys 632 #define POPF_MAPPING 0x80 // mapping keys
633 #define POPF_INFO 0x100 // used for info of popup menu 633 #define POPF_INFO 0x100 // used for info of popup menu
634 #define POPF_INFO_MENU 0x200 // align info popup with popup menu 634 #define POPF_INFO_MENU 0x200 // align info popup with popup menu
635 #define POPF_POSINVERT 0x400 // vertical position can be inverted
635 636
636 #ifdef FEAT_TEXT_PROP 637 #ifdef FEAT_TEXT_PROP
637 # define WIN_IS_POPUP(wp) ((wp)->w_popup_flags != 0) 638 # define WIN_IS_POPUP(wp) ((wp)->w_popup_flags != 0)
638 #else 639 #else
639 # define WIN_IS_POPUP(wp) 0 640 # define WIN_IS_POPUP(wp) 0