File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2130,7 +2130,7 @@ term_update_window(win_T *wp)
21302130 (char * )mb , 2 , 0 , 0 ) > 1 )
21312131 {
21322132 ScreenLines [off ] = mb [0 ];
2133- ScreenLines [off + 1 ] = mb [1 ];
2133+ ScreenLines [off + 1 ] = mb [1 ];
21342134 cell .width = mb_ptr2cells (mb );
21352135 }
21362136 else
@@ -2148,8 +2148,12 @@ term_update_window(win_T *wp)
21482148 {
21492149 if (enc_utf8 )
21502150 ScreenLinesUC [off ] = NUL ;
2151- else if (!has_mbyte )
2151+
2152+ /* don't set the second byte to NUL for a DBCS encoding, it
2153+ * has been set above */
2154+ if (enc_utf8 || !has_mbyte )
21522155 ScreenLines [off ] = NUL ;
2156+
21532157 ++ pos .col ;
21542158 ++ off ;
21552159 }
Original file line number Diff line number Diff line change @@ -769,6 +769,8 @@ static char *(features[]) =
769769
770770static int included_patches [] =
771771{ /* Add new patch number below this line */
772+ /**/
773+ 987 ,
772774/**/
773775 986 ,
774776/**/
You can’t perform that action at this time.
0 commit comments