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

Bram Moolenaar Bram at moolenaar.net
Fri Nov 23 21:09:52 UTC 2012


James -

> 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.

Thanks, I'll add it to the todo list.

- Bram

-- 
hundred-and-one symptoms of being an internet addict:
61. Your best friends know your e-mail address, but neither your phone number
    nor the address where you live.

 /// Bram Moolenaar -- Bram at Moolenaar.net -- 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    ///



More information about the pkg-vim-maintainers mailing list