0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1599: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution:   Add a dummy assignment.
This commit is contained in:
Bram Moolenaar
2019-06-26 04:06:57 +02:00
parent 53a95d6584
commit 6efd76ae4a
3 changed files with 6 additions and 4 deletions

View File

@@ -4560,9 +4560,9 @@ nv_mousescroll(cmdarg_T *cap)
nv_scroll_line(cap);
}
#ifdef FEAT_TEXT_PROP
if (bt_popup(wp->w_buffer))
if (bt_popup(curwin->w_buffer))
{
int height = wp->w_height;
int height = curwin->w_height;
curwin->w_firstline = curwin->w_topline;
popup_adjust_position(curwin);