comparison src/vim.h @ 17551:8cca2654d459 v8.1.1773

patch 8.1.1773: the preview popup window may be too far to the right commit https://github.com/vim/vim/commit/13d5c3f6162694a7e925e66fc4eea35436643384 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 28 21:42:38 2019 +0200 patch 8.1.1773: the preview popup window may be too far to the right Problem: The preview popup window may be too far to the right. Solution: Keep it inside the screen. Also keep the close button and scrollbar visible if possible.
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Jul 2019 21:45:05 +0200
parents 6e756ad5ef1a
children d5e5d0fc3fa8
comparison
equal deleted inserted replaced
17550:9afddb85a45c 17551:8cca2654d459
616 // Values for w_popup_flags. 616 // Values for w_popup_flags.
617 #define POPF_IS_POPUP 1 // this is a popup window 617 #define POPF_IS_POPUP 1 // this is a popup window
618 #define POPF_HIDDEN 2 // popup is not displayed 618 #define POPF_HIDDEN 2 // popup is not displayed
619 #define POPF_HANDLED 4 // popup was just redrawn or filtered 619 #define POPF_HANDLED 4 // popup was just redrawn or filtered
620 #define POPF_CURSORLINE 8 // popup is highlighting at the cursorline 620 #define POPF_CURSORLINE 8 // popup is highlighting at the cursorline
621 #define POPF_ON_CMDLINE 16 // popup overlaps command line
622
621 #ifdef FEAT_TEXT_PROP 623 #ifdef FEAT_TEXT_PROP
622 # define WIN_IS_POPUP(wp) ((wp)->w_popup_flags != 0) 624 # define WIN_IS_POPUP(wp) ((wp)->w_popup_flags != 0)
623 #else 625 #else
624 # define WIN_IS_POPUP(wp) 0 626 # define WIN_IS_POPUP(wp) 0
625 #endif 627 #endif