mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Fix empty format strings, from Jean-Philippe Menil.
This commit is contained in:
@ -87,7 +87,7 @@ cmd_show_prompt_history_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
cmdq_print(item, "%d: %s", hidx + 1,
|
cmdq_print(item, "%d: %s", hidx + 1,
|
||||||
status_prompt_hlist[tidx][hidx]);
|
status_prompt_hlist[tidx][hidx]);
|
||||||
}
|
}
|
||||||
cmdq_print(item, "");
|
cmdq_print(item, "%s", "");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
type = status_prompt_type(typestr);
|
type = status_prompt_type(typestr);
|
||||||
@ -101,7 +101,7 @@ cmd_show_prompt_history_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
cmdq_print(item, "%d: %s", hidx + 1,
|
cmdq_print(item, "%d: %s", hidx + 1,
|
||||||
status_prompt_hlist[type][hidx]);
|
status_prompt_hlist[type][hidx]);
|
||||||
}
|
}
|
||||||
cmdq_print(item, "");
|
cmdq_print(item, "%s", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
return (CMD_RETURN_NORMAL);
|
return (CMD_RETURN_NORMAL);
|
||||||
|
Reference in New Issue
Block a user