main
1diff --git a/src/app/mod.rs b/src/app/mod.rs
2index e48e446..159b145 100644
3--- a/src/app/mod.rs
4+++ b/src/app/mod.rs
5@@ -1054,21 +1054,6 @@ impl<'a> App<'a> {
6 );
7 }
8
9- // Ive noticed that zellij maintains its "is_line_wrapped" state
10- // even when we clear and redraw the lines
11- // This causes miscalculations of number of rows to move up because
12- // zellij combines two lines into one when the terminal is widened
13- // but our logic thinks those two lines are still separate.
14- // I have found issuing delete line commands fixes it.
15- let delete_count = (rows_up as u32 + 1).min(winsize.rows as u32);
16- if delete_count > 0 {
17- use termina::escape::csi::{Csi, Edit};
18- let _ = crate::flush_stdout!(
19- "{}",
20- Csi::Edit(Edit::DeleteLine(delete_count))
21- );
22- }
23-
24 self.terminal.reset_inline_cursor();
25
26 self.terminal.clear().unwrap_or_else(|e| {