Re: Problem in gui_mac.c?
- Lech Lorens wrote:
> 06-06-2011 05:42 użytkownik "Bram Moolenaar" <Bram@...> napisał:Perhaps the vim_mac lists triggers a response?
> > Indeed. However, nobody complained. Was something else hiding this
> > problem, or does fixing it reveal nother proboem?
> I won't be able to check, whether removing the semicolon causes any
> unexpected problems, because I don't even know where the nearest Mac could
> be ;-) Sorry.
This was the original remark:
> I found the following fragment in gui_mac.c:--
> if (gui.which_scrollbars[SBAR_BOTTOM]);
> p.v += gui.scrollbar_height;
> The indentation suggests that the author's intention was to increment
> p.v only when the condition is true, but the semicolon at the end of the
> "if()" line prevents it.
> Looks like the semicolon shouldn't be there.
hundred-and-one symptoms of being an internet addict:
146. You experience ACTUAL physical withdrawal symptoms when away
from your 'puter and the net.
/// Bram Moolenaar -- Bram@... -- 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