mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-15 22:05:24 -05:00
render: ime: don’t render cursor if cursor begin == end
This commit is contained in:
parent
e9f99df2ab
commit
83d3ae10ae
1 changed files with 4 additions and 3 deletions
7
render.c
7
render.c
|
|
@ -1093,9 +1093,10 @@ render_ime_preedit(struct terminal *term, struct buffer *buf)
|
|||
}
|
||||
|
||||
/* Hollow cursor */
|
||||
if (!term->ime.preedit.cursor.hidden) {
|
||||
int start = term->ime.preedit.cursor.start;
|
||||
int end = term->ime.preedit.cursor.end;
|
||||
int start = term->ime.preedit.cursor.start;
|
||||
int end = term->ime.preedit.cursor.end;
|
||||
|
||||
if (!term->ime.preedit.cursor.hidden && end > start) {
|
||||
|
||||
pixman_color_t fg = color_hex_to_pixman(term->colors.fg);
|
||||
pixman_color_t bg = color_hex_to_pixman(term->colors.bg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue