Mercurial > vim
changeset 17200:db81cee3a0e1 v8.1.1599
patch 8.1.1599: compiler warning for uninitialized variable
commit https://github.com/vim/vim/commit/6efd76ae4a5cb60facd261abd5d64800ec96402d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 26 04:06:57 2019 +0200
patch 8.1.1599: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution: Add a dummy assignment.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 26 Jun 2019 04:15:05 +0200 |
parents | 8b52f72f0618 |
children | ed5e42387f8b |
files | src/normal.c src/popupwin.c src/version.c |
diffstat | 3 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -4560,9 +4560,9 @@ nv_mousescroll(cmdarg_T *cap) nv_scroll_line(cap); } #ifdef FEAT_TEXT_PROP - if (bt_popup(wp->w_buffer)) - { - int height = wp->w_height; + if (bt_popup(curwin->w_buffer)) + { + int height = curwin->w_height; curwin->w_firstline = curwin->w_topline; popup_adjust_position(curwin);
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -2129,8 +2129,8 @@ update_popups(void (*win_update)(win_T * char_u buf[MB_MAXBYTES]; int row; int i; - int sb_thumb_top; - int sb_thumb_height; + int sb_thumb_top = 0; + int sb_thumb_height = 0; int attr_scroll = highlight_attr[HLF_PSB]; int attr_thumb = highlight_attr[HLF_PST];