To: vim_dev@googlegroups.com Subject: Patch 8.2.1514 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///