On 18-Aug-2019 17:24, Bram Moolenaar wrote:
Patch 8.1.1884
Problem: Cannot use mouse scroll wheel in popup in Insert mode. Mouse
clicks in popup close the popup menu.
Solution: Check if the mouse is in a popup window. Do not let mouse events
close the popup menu. (closes #4544)
Files: src/edit.c, src/popupmnu.c, src/insexpand.c
After this patch, mingw (gcc 9.1.1) throws this warning if FEAT_QUICKFIX
is not defined:
gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601
-DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -DFEAT_GUI_MSWIN
-DFEAT_CLIPBOARD -pipe -march=native -Wall -O3 -fomit-frame-pointer
-freg-struct-return popupmnu.c -o gobjnative/popupmnu.o
popupmnu.c: In function 'pum_set_selected':
popupmnu.c:641:13: warning: unused variable 'prev_selected'
[-Wunused-variable]
641 | int prev_selected = pum_selected;
| ^~~~~~~~~~~~~
Please check the attached patch which tries to fix it.
Cheers
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/7338f0ac-721a-0f6f-0a43-b6927d1f80c0%40internode.on.net.
--- popupmnu.c 2019-08-19 05:23:39.656569100 +1000
+++ popupmnu.c.new 2019-08-20 11:15:18.775365700 +1000
@@ -638,7 +638,9 @@
{
int resized = FALSE;
int context = pum_height / 2;
+#ifdef FEAT_QUICKFIX
int prev_selected = pum_selected;
+#endif
#ifdef FEAT_TEXT_PROP
int has_info = FALSE;
#endif