summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-07-28 21:42:38 +0200
committerBram Moolenaar <Bram@vim.org>2019-07-28 21:42:38 +0200
commit13d5c3f6162694a7e925e66fc4eea35436643384 (patch)
tree79469cfdac66b18b84c8d63584196c3376425d7c /src/ex_cmds.c
parentb78564d0221089e6dfc9c9d58239c18b991ca9fe (diff)
downloadvim-git-13d5c3f6162694a7e925e66fc4eea35436643384.tar.gz
patch 8.1.1773: the preview popup window may be too far to the rightv8.1.1773
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.
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 9e093ee1b..57c98ae92 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -5138,7 +5138,7 @@ prepare_tagpreview(
{
wp = popup_find_preview_window();
if (wp != NULL)
- popup_set_wantpos(wp);
+ popup_set_wantpos(wp, wp->w_minwidth);
}
else
# endif