summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-29 07:41:35 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-29 07:41:35 +0200
commitf9c85f580b3792f6b95107412972f5360d412ef0 (patch)
treefaaacd461a2d7788b15f15e317d466070fe26e8d /src/normal.c
parent548be7f126dc57ca861cb26dc6492c3b2a9e2c99 (diff)
downloadvim-git-f9c85f580b3792f6b95107412972f5360d412ef0.tar.gz
patch 8.1.1608: the evalfunc.c file is too bigv8.1.1607
Problem: The evalfunc.c file is too big. Solution: Move sign functionality to sign.c.
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/normal.c b/src/normal.c
index 0ab3db430..2015fd8dc 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