mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Do not allow inline styles to replace mode-style for the selected item,
from Alexis Hildebrandt in GitHub issue 2946.
This commit is contained in:
@ -716,14 +716,14 @@ mode_tree_draw(struct mode_tree_data *mtd)
|
||||
screen_write_nputs(&ctx, w, &gc0, "%s", text);
|
||||
if (mti->text != NULL) {
|
||||
format_draw(&ctx, &gc0, w - width, mti->text,
|
||||
NULL);
|
||||
NULL, 0);
|
||||
}
|
||||
} else {
|
||||
screen_write_clearendofline(&ctx, gc.bg);
|
||||
screen_write_nputs(&ctx, w, &gc, "%s", text);
|
||||
if (mti->text != NULL) {
|
||||
format_draw(&ctx, &gc, w - width, mti->text,
|
||||
NULL);
|
||||
NULL, 0);
|
||||
}
|
||||
}
|
||||
free(text);
|
||||
|
Reference in New Issue
Block a user