mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:33:46 +01:00
mplayer: don't cut status line if --no-consolecontrols is used
This commit is contained in:
parent
64a78cf314
commit
0e071892c3
@ -1180,7 +1180,10 @@ static int get_term_width(void)
|
||||
|
||||
static void write_status_line(struct MPContext *mpctx, const char *line)
|
||||
{
|
||||
if (erase_to_end_of_line) {
|
||||
struct MPOpts *opts = &mpctx->opts;
|
||||
if (!opts->consolecontrols) {
|
||||
mp_msg(MSGT_STATUSLINE, MSGL_STATUS, "%s\n", line);
|
||||
} else if (erase_to_end_of_line) {
|
||||
mp_msg(MSGT_STATUSLINE, MSGL_STATUS,
|
||||
"%s%s\r", line, erase_to_end_of_line);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user