Philippe Fremy wrote:
> >> I've noticed that after applying setModified through the netbeans
> >> interface, the tab bar, status bar and title are not updated to reflect
> >> the changed modified status.
> >>
> >> The proposed patch fixes that. I am a beginner in vim development, so
> >> tell me if it's not the correct way to get the gui updated.
> >
> > Thanks for the patch. I think it makes sense to check if the modified
> > flag actually changed. How about this patch instead:
>
> Good idea.
>
> Your patch works, except for check_status(buf) which should be
> check_status( buf->bufp ).
>
> buf is a netbeans buffer structure and buf->bufp is a vim buffer structure.
>
> What surprises me is that the compiler casts beween different pointers
> without even a warning.
>
> Attached is the final correct patch, with your modifications.
Thanks for fixing my mistake.
--
"I've been teaching myself to play the piano for about 5 years and now write
most of my songs on it, mainly because I can never find any paper."
Jeff Lynne, ELO's greatest hits
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---