mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
refactor(options): use schar_T representation for fillchars and listchars
A bit big, but practically it was a lot simpler to change over all fillchars and all listchars at once, to not need to maintain two parallel implementations. This is mostly an internal refactor, but it also removes an arbitrary limitation: that 'fillchars' and 'listchars' values can only be single-codepoint characters. Now any character which fits into a single screen cell can be used.
This commit is contained in:
@@ -629,19 +629,19 @@ void pum_redraw(void)
|
||||
}
|
||||
|
||||
if (pum_rl) {
|
||||
grid_line_fill(col_off - pum_base_width - n + 1, grid_col + 1, ' ', attr);
|
||||
grid_line_fill(col_off - pum_base_width - n + 1, grid_col + 1, schar_from_ascii(' '), attr);
|
||||
grid_col = col_off - pum_base_width - n + 1;
|
||||
} else {
|
||||
grid_line_fill(grid_col, col_off + pum_base_width + n, ' ', attr);
|
||||
grid_line_fill(grid_col, col_off + pum_base_width + n, schar_from_ascii(' '), attr);
|
||||
grid_col = col_off + pum_base_width + n;
|
||||
}
|
||||
totwidth = pum_base_width + n;
|
||||
}
|
||||
|
||||
if (pum_rl) {
|
||||
grid_line_fill(col_off - pum_width + 1, grid_col + 1, ' ', attr);
|
||||
grid_line_fill(col_off - pum_width + 1, grid_col + 1, schar_from_ascii(' '), attr);
|
||||
} else {
|
||||
grid_line_fill(grid_col, col_off + pum_width, ' ', attr);
|
||||
grid_line_fill(grid_col, col_off + pum_width, schar_from_ascii(' '), attr);
|
||||
}
|
||||
|
||||
if (pum_scrollbar > 0) {
|
||||
|
Reference in New Issue
Block a user