Bug#620106: [patch] Fix off-by-one for justify.vim

James McCoy jamessan at debian.org
Fri Nov 23 20:01:43 UTC 2012


Hi Bram,

As reported in Debian[0], macros/justify.vim doesn't always fully
correctly justify the text.  This is due to a off-by-one in the justify
logic.  The attached patch fixes this as well as updating the script to
use strdisplaywidth() instead of the strlen(substitute(s, '.', 'x',
'g')) hack.

[0]: http://bugs.debian.org/620106
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: justify-fix.diff
Type: text/x-diff
Size: 1300 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20121123/f84916d6/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20121123/f84916d6/attachment.pgp>


More information about the pkg-vim-maintainers mailing list