Kazunobu Kuriyama wrote:
> On Mar 20, 2015, at 23:59, Bram Moolenaar <[email protected]> wrote:
>
> >
> > Patch 7.4.665
> > Problem: 'linebreak' does not work properly with multi-byte characters.
> > Solution: Compute the pointer offset with mb_head_off(). (Yasuhiro
> > Matsumoto)
> > Files: src/screen.c
> >
>
> Hi list,
>
> With this patch, I got the following compiler warning:
>
> screen.c:4510:11: warning: declaration shadows a local variable [-Wshadow]
> int off = has_mbyte ? (*mb_head_off)(line, ptr - 1) : 0;
> ^
> screen.c:2886:14: note: previous declaration is here
> unsigned off; /* offset in ScreenLines/ScreenAttrs
> */
> ^
>
> I guess someone has already noticed it and is going to fix it.
> Nonetheless, I’m attaching a tiny patch to this email to clarify what
> I’m talking about :-)
>
> Note that the patch was made against screen.c of 7.4.670, not that of
> 7.4.665.
I hadn't noticed this yet. I'll include your change, thanks!
--
With sufficient thrust, pigs fly just fine.
-- RFC 1925
/// 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.