nvie / vim-rst-tables

Easily create and reformat your RST (reStructuredText) tables as you change cell content.
121 stars 36 forks source link

Fix wrong table width when non-ascii characters are present #22

Closed jorgesca closed 9 years ago

jorgesca commented 9 years ago

My environment is set up to use utf-8. Whenever I use accented characters the table widths are wrong. The logic of the fix is to decode all strings using vim's "encoding" variable before doing anything, and encode all strings just before sending the buffer slice to vim.

nvie commented 9 years ago

Thanks!