comparison src/ex_cmds.c @ 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 d4b2a212fa2f
children 65a8099fc0e8
comparison
equal deleted inserted replaced
17550:9afddb85a45c 17551:8cca2654d459
5136 # ifdef FEAT_TEXT_PROP 5136 # ifdef FEAT_TEXT_PROP
5137 if (*p_pvp != NUL) 5137 if (*p_pvp != NUL)
5138 { 5138 {
5139 wp = popup_find_preview_window(); 5139 wp = popup_find_preview_window();
5140 if (wp != NULL) 5140 if (wp != NULL)
5141 popup_set_wantpos(wp); 5141 popup_set_wantpos(wp, wp->w_minwidth);
5142 } 5142 }
5143 else 5143 else
5144 # endif 5144 # endif
5145 { 5145 {
5146 FOR_ALL_WINDOWS(wp) 5146 FOR_ALL_WINDOWS(wp)