mirror of
https://github.com/tmux/tmux.git
synced 2025-04-09 02:18:48 +00:00
Clear to end of line properly with UTF-8 present.
This commit is contained in:
parent
99351c9cae
commit
6e5121be7e
@ -554,10 +554,12 @@ mode_tree_draw(struct mode_tree_data *mtd)
|
||||
}
|
||||
|
||||
if (i != mtd->current) {
|
||||
screen_write_puts(&ctx, &gc0, "%.*s", w, text);
|
||||
screen_write_nputs(&ctx, w, &gc0, "%s", text);
|
||||
screen_write_clearendofline(&ctx, 8);
|
||||
} else
|
||||
screen_write_puts(&ctx, &gc, "%-*.*s", w, w, text);
|
||||
} else {
|
||||
screen_write_nputs(&ctx, w, &gc, "%s", text);
|
||||
screen_write_clearendofline(&ctx, gc.bg);
|
||||
}
|
||||
free(text);
|
||||
|
||||
if (mti->tagged) {
|
||||
|
Loading…
Reference in New Issue
Block a user