diff options
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/normal.c b/src/normal.c index 0ab3db4300..2015fd8dc9 100644 --- a/src/normal.c +++ b/src/normal.c @@ -4561,20 +4561,7 @@ nv_mousescroll(cmdarg_T *cap) } #ifdef FEAT_TEXT_PROP if (bt_popup(curwin->w_buffer)) - { - int height = curwin->w_height; - - curwin->w_firstline = curwin->w_topline; - popup_adjust_position(curwin); - - // we don't want the popup to get smaller, decrement the first line - // until it doesn't - while (curwin->w_firstline > 1 && curwin->w_height < height) - { - --curwin->w_firstline; - popup_adjust_position(curwin); - } - } + popup_set_firstline(curwin); #endif } # ifdef FEAT_GUI |