0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

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)
This commit is contained in:
Bram Moolenaar
2020-08-22 17:21:14 +02:00
parent c63b72b6dc
commit 9943b3d979
2 changed files with 4 additions and 1 deletions

View File

@@ -464,7 +464,8 @@ screen_line(
// First char of a popup window may go on top of the right half of a
// double-wide character. Clear the left half to avoid it getting the popup
// window background color.
if (coloff > 0 && ScreenLines[off_to] == 0)
if (coloff > 0 && ScreenLines[off_to] == 0
&& ScreenLinesUC[off_to - 1] != 0)
{
ScreenLines[off_to - 1] = ' ';
ScreenLinesUC[off_to - 1] = 0;