Skip to content

Commit dc0cf1d

Browse files
committed
patch 8.2.1514: multibyte vertical separator is cleared when dragging popup
Problem: Multibyte vertical separator is cleared when dragging a popup window using a multi-byte character for the border. Solution: Only clear the character before the window if it is double width. (closes #6766)
1 parent 0981c87 commit dc0cf1d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/screen.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ screen_line(
465465
// double-wide character. Clear the left half to avoid it getting the popup
466466
// window background color.
467467
if (coloff > 0 && ScreenLines[off_to] == 0
468-
&& ScreenLinesUC[off_to - 1] != 0)
468+
&& ScreenLinesUC[off_to - 1] != 0
469+
&& (*mb_char2cells)(ScreenLinesUC[off_to - 1]) > 1)
469470
{
470471
ScreenLines[off_to - 1] = ' ';
471472
ScreenLinesUC[off_to - 1] = 0;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ static char *(features[]) =
754754

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1514,
757759
/**/
758760
1513,
759761
/**/

0 commit comments

Comments
 (0)