summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-21 22:07:24 +0200
committerwm4 <wm4@nowhere>2013-05-21 22:07:24 +0200
commit0e071892c3e55c18a7fcada44fabb527531f38cb (patch)
tree4d90789cd04306991d3017da87e59a2fde4b218f /core
parent64a78cf314379302e28ed8727c51aec82f9328a2 (diff)
downloadmpv-0e071892c3e55c18a7fcada44fabb527531f38cb.tar.bz2
mpv-0e071892c3e55c18a7fcada44fabb527531f38cb.tar.xz
mplayer: don't cut status line if --no-consolecontrols is used
Diffstat (limited to 'core')
-rw-r--r--core/mplayer.c5
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 {