From f2e28fa6c4ccf3032fa253d9c730f6a9ed774876 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 9 Apr 2025 07:35:39 +0200 Subject: [PATCH] Drop unnecessary use of is_dumb() "infocmp dumb" shows that this is redundant. --- src/screen.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/screen.rs b/src/screen.rs index 221858434..be7c5af37 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -727,10 +727,8 @@ pub fn reset_abandoning_line(&mut self, screen_width: usize) { // line above your prompt. This doesn't make a difference in normal usage, but copying and // pasting your terminal log becomes a pain. This commit clears that line, making it an // actual empty line. - if !is_dumb() { - if let Some(clr_eol) = term.clr_eol.as_ref() { - abandon_line_string.push_utfstr(&str2wcstring(clr_eol.as_bytes())); - } + if let Some(clr_eol) = term.clr_eol.as_ref() { + abandon_line_string.push_utfstr(&str2wcstring(clr_eol.as_bytes())); } let narrow_abandon_line_string = wcs2string(&abandon_line_string);