Patch 8.2.1514
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)
Files: src/screen.c
*** ../vim-8.2.1513/src/screen.c 2020-08-22 17:21:10.250012064 +0200
--- src/screen.c 2020-08-23 15:06:53.801410103 +0200
***************
*** 465,471 ****
// double-wide character. Clear the left half to avoid it getting the
popup
// window background color.
if (coloff > 0 && ScreenLines[off_to] == 0
! && ScreenLinesUC[off_to - 1] != 0)
{
ScreenLines[off_to - 1] = ' ';
ScreenLinesUC[off_to - 1] = 0;
--- 465,472 ----
// double-wide character. Clear the left half to avoid it getting the
popup
// window background color.
if (coloff > 0 && ScreenLines[off_to] == 0
! && ScreenLinesUC[off_to - 1] != 0
! && (*mb_char2cells)(ScreenLinesUC[off_to - 1]) > 1)
{
ScreenLines[off_to - 1] = ' ';
ScreenLinesUC[off_to - 1] = 0;
*** ../vim-8.2.1513/src/version.c 2020-08-23 14:28:24.111838486 +0200
--- src/version.c 2020-08-23 15:08:43.073103670 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1514,
/**/
--
Edison's greatest achievement came in 1879, when he invented the
electric company. Edison's design was a brilliant adaptation of the
simple electrical circuit: the electric company sends electricity
through a wire to a customer, then immediately gets the electricity
back through another wire
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202008231310.07NDA9ax977123%40masaka.moolenaar.net.