fix(terminal): wrap lines when adding characters in alternate screen (#2789)

This commit is contained in:
Aram Drevekenin 2023-09-15 16:24:01 +02:00 committed by GitHub
parent 697723ddd3
commit 5fdfe4507f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1331,7 +1331,7 @@ impl Grid {
if character_width == 0 { if character_width == 0 {
return; return;
} }
if self.cursor.x + character_width > self.width && self.alternate_screen_state.is_none() { if self.cursor.x + character_width > self.width {
if self.disable_linewrap { if self.disable_linewrap {
return; return;
} }