Jürgen Krämer wrote:
> Bram Moolenaar schrieb am 25.08.2015 um 12:27:
> >
> > Patch 7.4.829
> > Problem: Crash when clicking in beval balloon. (Travis Lebsock)
> > Solution: Use PostMessage() instead of DestroyWindow(). (Raymond Ko, PR
> > 298)
> > Files: src/gui_w32.c
> >
> >
> > *** ../vim-7.4.828/src/gui_w32.c 2015-08-11 19:13:55.138175689 +0200
> > --- src/gui_w32.c 2015-08-25 12:20:08.668726500 +0200
> > ***************
> > *** 4836,4842 ****
> > delete_tooltip(beval)
> > BalloonEval *beval;
> > {
> > ! DestroyWindow(beval->balloon);
> > }
> >
> > /*ARGSUSED*/
> > --- 4836,4843 ----
> > delete_tooltip(beval)
> > BalloonEval *beval;
> > {
> > ! PostMessage(beval->balloon, WM_DESTROY, 0, 0);
> > ! PostMessage(beval->balloon, WM_NCDESTROY, 0, 0);
> > }
> >
> > /*ARGSUSED*/
> > *** ../vim-7.4.828/src/version.c 2015-08-25 11:57:45.026505650 +0200
> > --- src/version.c 2015-08-25 12:18:39.021646821 +0200
> > ***************
> > *** 743,744 ****
> > --- 743,746 ----
> > { /* Add new patch number below this line */
> > + /**/
> > + 829,
> > /**/
> >
>
> this fixes the crash, but now the hints are not removed anymore and stay
> visible. An additional
>
> PostMessage(beval->balloon, WM_CLOSE, 0, 0);
>
> at the start of delete_tooltip() seems to make it work correctly.
OK, I'll add that then.
--
There are only two hard things in programming: Cache invalidation,
naming things and off-by-one errors.
/// Bram Moolenaar -- [email protected] -- 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 ///
--
--
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].
For more options, visit https://groups.google.com/d/optout.