Hi. What physical condition are you?
A result of discussions at the Issue of vim-jp.
This is a common problem in a multi-byte countries.
In the terminal,
if the last character in the string is a multi-byte
character, and by outputting the space character,
and keep the integrity of the display.
When it is logic of the current, the output of the
multi-byte string will end in the middle.
However, there is a leak in the trick.
This patch supplemented with leakage.
"screen_puts_len()" is cast to (int) a 64bit
pointer arithmetic. Here should be a (long).
This patch, the workaround is simply it.
That I learn a lot.
--------
Thanks.
Nobuhiro Takasaki
--
--
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.
diff -r c545fd75b0ac src/screen.c
--- a/src/screen.c Tue May 13 14:03:40 2014 +0200
+++ b/src/screen.c Tue May 13 23:10:37 2014 +0900
@@ -7169,7 +7169,10 @@
col += mbyte_cells;
ptr += mbyte_blen;
if (clear_next_cell)
+ {
ptr = (char_u *)" ";
+ len = -1;
+ }
}
else
#endif