From dbbeb7d4ede2c92dc7dd5027a48e7aae19622e26 Mon Sep 17 00:00:00 2001 From: mo8it Date: Thu, 29 Aug 2024 17:06:37 +0200 Subject: [PATCH] Fix displaying the list message in narrow mode --- src/list/state.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/list/state.rs b/src/list/state.rs index b030aac8..bc1ac729 100644 --- a/src/list/state.rs +++ b/src/list/state.rs @@ -263,14 +263,17 @@ impl<'a> ListState<'a> { } writer.write_ascii(b" | uit list")?; + next_ln(stdout)?; } else { writer.stdout.queue(SetForegroundColor(Color::Magenta))?; writer.write_str(&self.message)?; stdout.queue(ResetColor)?; next_ln(stdout)?; - } - next_ln(stdout)?; + if self.narrow_term { + next_ln(stdout)?; + } + } } stdout.queue(EndSynchronizedUpdate)?.flush()