To: "Ron Aaron (Moss Bay Engineering) (Exchange)" In-Reply-To: Cc: "Vim Developers (E-mail)" Subject: patch 5.4p.7 (was: mousemodel=popup_setpos doesn't work (5.4p, patchlevel 5, win32)) Fcc: outbox From: Bram Moolenaar ------------ Ron Aaron wrote: > On Win32, setting mousemodel to 'popup_setpos' doesn't work. > > That is, pressing the right mouse button does not move the cursor to the > click position (that's what I understand it is supposed to do). It does > work ok in the GTK version. Well, actually it does work, but the screen isn't updated until the popup menu goes away. That can be fixed: atch 5.4p.7 Problem: Win32 GUI: When using 'mousemodel' set to "popup_setpos" and clicking the right mouse button outside of the selected area, the selected area wasn't removed until the popup menu has gone. (Aaron) Solution: Set the cursor and update the display before showing the popup menu. Files: src/normal.c *** ../vim-5.4p/src/normal.c Mon Jul 19 11:09:17 1999 --- src/normal.c Tue Jul 20 20:25:50 1999 *************** *** 2244,2249 **** --- 2244,2251 ---- { jump_flags = jump_to_mouse(jump_flags, NULL); update_curbuf(NOT_VALID); + setcursor(); + out_flush(); } # ifdef WANT_MENU gui_show_popupmenu(); -- hundred-and-one symptoms of being an internet addict: 182. You may not know what is happening in the world, but you know every bit of net-gossip there is. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /