diff options
author | Aram Drevekenin <aram@poor.dev> | 2023-09-15 16:24:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 16:24:01 +0200 |
commit | 5fdfe4507f9f6ceb56d96660d5c19a5e7da54570 (patch) | |
tree | 4165535ba28ccf20bd5f06fde80bac02b90922f6 | |
parent | 697723ddd30715e2997ad12352ea3c89ebdb7e17 (diff) |
fix(terminal): wrap lines when adding characters in alternate screen (#2789)
-rw-r--r-- | zellij-server/src/panes/grid.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zellij-server/src/panes/grid.rs b/zellij-server/src/panes/grid.rs index 6cafad7d3..a13b64452 100644 --- a/zellij-server/src/panes/grid.rs +++ b/zellij-server/src/panes/grid.rs @@ -1331,7 +1331,7 @@ impl Grid { if character_width == 0 { 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 { return; } |