mplayer: don't cut status line if --no-consolecontrols is used

This commit is contained in:
wm4 2013-05-21 22:07:24 +02:00
parent 64a78cf314
commit 0e071892c3
1 changed files with 4 additions and 1 deletions

View File

@ -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 {