mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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)
This commit is contained in:
@@ -465,7 +465,8 @@ screen_line(
|
|||||||
// double-wide character. Clear the left half to avoid it getting the popup
|
// double-wide character. Clear the left half to avoid it getting the popup
|
||||||
// window background color.
|
// window background color.
|
||||||
if (coloff > 0 && ScreenLines[off_to] == 0
|
if (coloff > 0 && ScreenLines[off_to] == 0
|
||||||
&& ScreenLinesUC[off_to - 1] != 0)
|
&& ScreenLinesUC[off_to - 1] != 0
|
||||||
|
&& (*mb_char2cells)(ScreenLinesUC[off_to - 1]) > 1)
|
||||||
{
|
{
|
||||||
ScreenLines[off_to - 1] = ' ';
|
ScreenLines[off_to - 1] = ' ';
|
||||||
ScreenLinesUC[off_to - 1] = 0;
|
ScreenLinesUC[off_to - 1] = 0;
|
||||||
|
@@ -754,6 +754,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 */
|
||||||
|
/**/
|
||||||
|
1514,
|
||||||
/**/
|
/**/
|
||||||
1513,
|
1513,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user