Skip to content

Commit 9943b3d

Browse files
committed
patch 8.2.1509: vertical separator is cleared when dragging a popup window
Problem: 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 using a multi-byte character. (closes #6766)
1 parent c63b72b commit 9943b3d

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
@@ -464,7 +464,8 @@ screen_line(
464464
// First char of a popup window may go on top of the right half of a
465465
// double-wide character. Clear the left half to avoid it getting the popup
466466
// window background color.
467-
if (coloff > 0 && ScreenLines[off_to] == 0)
467+
if (coloff > 0 && ScreenLines[off_to] == 0
468+
&& ScreenLinesUC[off_to - 1] != 0)
468469
{
469470
ScreenLines[off_to - 1] = ' ';
470471
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+
1509,
757759
/**/
758760
1508,
759761
/**/

0 commit comments

Comments
 (0)