forked from aniani/vim
patch 8.0.0987: terminal: second byte of double-byte char wrong
Problem: terminal: second byte of double-byte char wrong Solution: Set the second byte to NUL only for utf-8 and non-multibyte.
This commit is contained in:
@@ -2148,8 +2148,12 @@ term_update_window(win_T *wp)
|
|||||||
{
|
{
|
||||||
if (enc_utf8)
|
if (enc_utf8)
|
||||||
ScreenLinesUC[off] = NUL;
|
ScreenLinesUC[off] = NUL;
|
||||||
else if (!has_mbyte)
|
|
||||||
|
/* don't set the second byte to NUL for a DBCS encoding, it
|
||||||
|
* has been set above */
|
||||||
|
if (enc_utf8 || !has_mbyte)
|
||||||
ScreenLines[off] = NUL;
|
ScreenLines[off] = NUL;
|
||||||
|
|
||||||
++pos.col;
|
++pos.col;
|
||||||
++off;
|
++off;
|
||||||
}
|
}
|
||||||
|
@@ -769,6 +769,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
987,
|
||||||
/**/
|
/**/
|
||||||
986,
|
986,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user