0
0
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:
Bram Moolenaar
2020-09-26 22:03:00 +02:00
parent c70bdab0b8
commit 3697c9bbae
8 changed files with 102 additions and 24 deletions

View File

@@ -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);