fix: emit CRLF after attributes have reversed

Moving to the next line before the attributes are reversed might lead to
some wonky behavior in some edge cases. So to be on the safe side, emit
CRLF after attributes have been reversed
This commit is contained in:
mgpinf authored and Wez Furlong committed 2025-02-10 07:08:46 -07:00
1 parent 488dd37239
commit dd0198df67
1 file changed
+2 -1
+2 -1
View File
@@ -405,11 +405,12 @@ impl LauncherState {
line.resize(max_width, termwiz::surface::SEQ_ZERO);
}
changes.append(&mut line.changes(&attr));
changes.push(Change::Text(" \r\n".to_string()));
changes.push(Change::Text(" ".to_string()));
if entry_idx == self.active_idx {
changes.push(AttributeChange::Reverse(false).into());
}
changes.push(Change::Text("\r\n".to_string()));
}
if self.filtering || !self.filter_term.is_empty() {