mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1750: popup_setoptions() setting firstline fails if cursorline set
Problem: Setting firstline with popup_setoptions() fails if cursorline is set. Solution: Use apply_options(). Update the popup before applying "zz". (closes #7010)
This commit is contained in:
@@ -2144,6 +2144,10 @@ scroll_cursor_halfway(int atend)
|
||||
linenr_T old_topline = curwin->w_topline;
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_PROP_POPUP
|
||||
// if the width changed this needs to be updated first
|
||||
may_update_popup_position();
|
||||
#endif
|
||||
loff.lnum = boff.lnum = curwin->w_cursor.lnum;
|
||||
#ifdef FEAT_FOLDING
|
||||
(void)hasFolding(loff.lnum, &loff.lnum, &boff.lnum);
|
||||
|
Reference in New Issue
Block a user