To: vim_dev@googlegroups.com Subject: Patch 8.0.1756 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1756 Problem: GUI: after prompting for a number the mouse shape is sometimes wrong. Solution: Call setmouse() after setting "State". (Hirohito Higashi, closes #2709) Files: src/misc1.c *** ../vim-8.0.1755/src/misc1.c 2018-03-04 18:07:04.260592398 +0100 --- src/misc1.c 2018-04-24 17:37:28.142734040 +0200 *************** *** 3594,3599 **** --- 3594,3604 ---- cmdline_row = 0; save_State = State; State = ASKMORE; /* prevents a screen update when using a timer */ + #ifdef FEAT_MOUSE + /* May show different mouse shape. */ + setmouse(); + #endif + i = get_number(TRUE, mouse_used); if (KeyTyped) *************** *** 3608,3613 **** --- 3613,3622 ---- else cmdline_row = save_cmdline_row; State = save_State; + #ifdef FEAT_MOUSE + /* May need to restore mouse shape. */ + setmouse(); + #endif return i; } *** ../vim-8.0.1755/src/version.c 2018-04-24 16:04:53.646804312 +0200 --- src/version.c 2018-04-24 17:41:13.869401521 +0200 *************** *** 763,764 **** --- 763,766 ---- { /* Add new patch number below this line */ + /**/ + 1756, /**/ -- hundred-and-one symptoms of being an internet addict: 271. You collect hilarious signatures from all 250 mailing lists you are subscribed to. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///