comparison src/screen.c @ 21919:ebc6d07840fd v8.2.1509

patch 8.2.1509: vertical separator is cleared when dragging a popup window Commit: https://github.com/vim/vim/commit/9943b3d97955ece99c747c959e0a7d493bb762bb Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 22 17:21:14 2020 +0200 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)
author Bram Moolenaar <Bram@vim.org>
date Sat, 22 Aug 2020 17:30:03 +0200
parents 421c4ed6b949
children 771904112b47
comparison
equal deleted inserted replaced
21918:d94d2fd69d06 21919:ebc6d07840fd
462 462
463 #ifdef FEAT_PROP_POPUP 463 #ifdef FEAT_PROP_POPUP
464 // First char of a popup window may go on top of the right half of a 464 // First char of a popup window may go on top of the right half of a
465 // double-wide character. Clear the left half to avoid it getting the popup 465 // double-wide character. Clear the left half to avoid it getting the popup
466 // window background color. 466 // 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)
468 { 469 {
469 ScreenLines[off_to - 1] = ' '; 470 ScreenLines[off_to - 1] = ' ';
470 ScreenLinesUC[off_to - 1] = 0; 471 ScreenLinesUC[off_to - 1] = 0;
471 screen_char(off_to - 1, row, col + coloff - 1); 472 screen_char(off_to - 1, row, col + coloff - 1);
472 } 473 }