mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
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.
This commit is contained in:
10
src/screen.c
10
src/screen.c
@@ -795,6 +795,11 @@ update_screen(int type_arg)
|
||||
FOR_ALL_WINDOWS(wp)
|
||||
wp->w_buffer->b_mod_set = FALSE;
|
||||
|
||||
#ifdef FEAT_TEXT_PROP
|
||||
// Display popup windows on top of the windows and command line.
|
||||
update_popups(win_update);
|
||||
#endif
|
||||
|
||||
after_updating_screen(TRUE);
|
||||
|
||||
/* Clear or redraw the command line. Done last, because scrolling may
|
||||
@@ -810,11 +815,6 @@ update_screen(int type_arg)
|
||||
maybe_intro_message();
|
||||
did_intro = TRUE;
|
||||
|
||||
#ifdef FEAT_TEXT_PROP
|
||||
// Display popup windows on top of the windows.
|
||||
update_popups(win_update);
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_GUI
|
||||
/* Redraw the cursor and update the scrollbars when all screen updating is
|
||||
* done. */
|
||||
|
Reference in New Issue
Block a user