diff options
author | wm4 <wm4@nowhere> | 2013-05-21 22:07:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-21 22:07:24 +0200 |
commit | 0e071892c3e55c18a7fcada44fabb527531f38cb (patch) | |
tree | 4d90789cd04306991d3017da87e59a2fde4b218f /core/mplayer.c | |
parent | 64a78cf314379302e28ed8727c51aec82f9328a2 (diff) |
mplayer: don't cut status line if --no-consolecontrols is used
Diffstat (limited to 'core/mplayer.c')
-rw-r--r-- | core/mplayer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/mplayer.c b/core/mplayer.c index 6a2a530469..0281270d5f 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -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 { |