mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-20 06:05:16 +00:00
Fix incorrect centering when a PUA or symbol glyph is followed by more than one space
This commit is contained in:
parent
48631c4ea6
commit
ca998fb4b0
2 changed files with 3 additions and 1 deletions
|
|
@ -41,6 +41,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||
|
||||
- Fix ``launch --location=last`` not working (:iss:`2841`)
|
||||
|
||||
- Fix incorrect centering when a PUA or symbol glyph is followed by more than one space
|
||||
|
||||
|
||||
0.18.1 [2020-06-23]
|
||||
--------------------
|
||||
|
|
|
|||
|
|
@ -1168,7 +1168,7 @@ render_line(FONTS_DATA_HANDLE fg_, Line *line, index_type lnum, Cursor *cursor,
|
|||
unsigned int num_spaces = 0;
|
||||
while ((line->cpu_cells[i+num_spaces+1].ch == ' ')
|
||||
&& num_spaces < MAX_NUM_EXTRA_GLYPHS_PUA
|
||||
&& num_spaces < desired_cells
|
||||
&& num_spaces + 1 < desired_cells
|
||||
&& i + num_spaces + 1 < line->xnum) {
|
||||
num_spaces++;
|
||||
// We have a private use char followed by space(s), render it as a multi-cell ligature.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue