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
@ -41,6 +41,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||||||
|
|
||||||
- Fix ``launch --location=last`` not working (:iss:`2841`)
|
- 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]
|
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;
|
unsigned int num_spaces = 0;
|
||||||
while ((line->cpu_cells[i+num_spaces+1].ch == ' ')
|
while ((line->cpu_cells[i+num_spaces+1].ch == ' ')
|
||||||
&& num_spaces < MAX_NUM_EXTRA_GLYPHS_PUA
|
&& num_spaces < MAX_NUM_EXTRA_GLYPHS_PUA
|
||||||
&& num_spaces < desired_cells
|
&& num_spaces + 1 < desired_cells
|
||||||
&& i + num_spaces + 1 < line->xnum) {
|
&& i + num_spaces + 1 < line->xnum) {
|
||||||
num_spaces++;
|
num_spaces++;
|
||||||
// We have a private use char followed by space(s), render it as a multi-cell ligature.
|
// We have a private use char followed by space(s), render it as a multi-cell ligature.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user