mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-patch:9.1.0772: some missing changes from v9.1.0771
Problem: some missing changes from v9.1.0771
Solution: use correct highlighting attribute and adjust comments
(glepnir)
closes: vim/vim#15836
7baa014d0f
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
@@ -733,8 +733,7 @@ void pum_redraw(void)
|
||||
}
|
||||
|
||||
if (attrs != NULL) {
|
||||
xfree(attrs);
|
||||
attrs = NULL;
|
||||
XFREE_CLEAR(attrs);
|
||||
}
|
||||
|
||||
if (*p != TAB) {
|
||||
@@ -743,10 +742,10 @@ void pum_redraw(void)
|
||||
|
||||
// Display two spaces for a Tab.
|
||||
if (pum_rl) {
|
||||
grid_line_puts(grid_col - 1, " ", 2, orig_attr);
|
||||
grid_line_puts(grid_col - 1, " ", 2, attr);
|
||||
grid_col -= 2;
|
||||
} else {
|
||||
grid_line_puts(grid_col, " ", 2, orig_attr);
|
||||
grid_line_puts(grid_col, " ", 2, attr);
|
||||
grid_col += 2;
|
||||
}
|
||||
totwidth += 2;
|
||||
@@ -777,10 +776,12 @@ void pum_redraw(void)
|
||||
}
|
||||
|
||||
if (pum_rl) {
|
||||
grid_line_fill(col_off - basic_width - n + 1, grid_col + 1, schar_from_ascii(' '), attr);
|
||||
grid_line_fill(col_off - basic_width - n + 1, grid_col + 1,
|
||||
schar_from_ascii(' '), orig_attr);
|
||||
grid_col = col_off - basic_width - n;
|
||||
} else {
|
||||
grid_line_fill(grid_col, col_off + basic_width + n, schar_from_ascii(' '), orig_attr);
|
||||
grid_line_fill(grid_col, col_off + basic_width + n,
|
||||
schar_from_ascii(' '), orig_attr);
|
||||
grid_col = col_off + basic_width + n;
|
||||
}
|
||||
totwidth = basic_width + n;
|
||||
|
Reference in New Issue
Block a user