diff --git a/src/tests/fakes.rs b/src/tests/fakes.rs index 77bde241..f18d63e2 100644 --- a/src/tests/fakes.rs +++ b/src/tests/fakes.rs @@ -6,7 +6,7 @@ use ::std::collections::HashMap; use ::std::sync::{Arc, Mutex}; use crate::os_input_output::OsApi; -use crate::tests::possible_inputs::{Bytes, get_possible_inputs}; +use crate::tests::possible_tty_inputs::{Bytes, get_possible_tty_inputs}; #[derive(Clone)] pub enum IoEvent { @@ -74,7 +74,7 @@ pub struct FakeInputOutput { pub stdout_writer: FakeStdoutWriter, // stdout_writer.output is already an arc/mutex io_events: Arc>>, win_sizes: Arc>>, - possible_inputs: HashMap, + possible_tty_inputs: HashMap, } impl FakeInputOutput { @@ -88,9 +88,13 @@ impl FakeInputOutput { stdout_writer: FakeStdoutWriter::default(), io_events: Arc::new(Mutex::new(vec![])), win_sizes: Arc::new(Mutex::new(win_sizes)), - possible_inputs: get_possible_inputs(), + possible_tty_inputs: get_possible_tty_inputs(), } } + pub fn with_tty_inputs(mut self, tty_inputs: HashMap) -> Self { + self.possible_tty_inputs = tty_inputs; + self + } pub fn add_terminal_input(&mut self, input: &[u8]) { self.input_to_add = Arc::new(Mutex::new(Some(input.to_vec()))); } @@ -106,7 +110,7 @@ impl OsApi for FakeInputOutput { *winsize } fn set_terminal_size_using_fd(&mut self, pid: RawFd, cols: u16, rows: u16) { - let terminal_input = self.possible_inputs.get(&cols).expect(&format!("could not find input for size {:?}", cols)); + let terminal_input = self.possible_tty_inputs.get(&cols).expect(&format!("could not find input for size {:?}", cols)); self.read_buffers.lock().unwrap().insert(pid, terminal_input.clone()); self.io_events.lock().unwrap().push(IoEvent::SetTerminalSizeUsingFd(pid, cols, rows)); } diff --git a/src/tests/fixtures/fish_and_bandwhich b/src/tests/fixtures/fish_and_bandwhich new file mode 100644 index 00000000..a94dc7ba Binary files /dev/null and b/src/tests/fixtures/fish_and_bandwhich differ diff --git a/src/tests/fixtures/fish_select_tab_completion_options b/src/tests/fixtures/fish_select_tab_completion_options new file mode 100644 index 00000000..bab8c6d4 Binary files /dev/null and b/src/tests/fixtures/fish_select_tab_completion_options differ diff --git a/src/tests/fixtures/fish_tab_completion_options b/src/tests/fixtures/fish_tab_completion_options new file mode 100644 index 00000000..f4ad186b Binary files /dev/null and b/src/tests/fixtures/fish_tab_completion_options differ diff --git a/src/tests/integration/basic.rs b/src/tests/integration/basic.rs index 752d720b..123f96e6 100644 --- a/src/tests/integration/basic.rs +++ b/src/tests/integration/basic.rs @@ -1,8 +1,9 @@ use ::nix::pty::Winsize; use ::insta::assert_snapshot; -use crate::{start, TerminalOutput}; +use crate::start; use crate::tests::fakes::{FakeInputOutput}; +use crate::tests::utils::get_output_frame_snapshots; fn get_fake_os_input (fake_win_size: &Winsize) -> FakeInputOutput { FakeInputOutput::new(fake_win_size.clone()) @@ -19,33 +20,9 @@ pub fn starts_with_one_terminal () { let mut fake_input_output = get_fake_os_input(&fake_win_size); fake_input_output.add_terminal_input(&[17]); // quit (ctrl-q) start(Box::new(fake_input_output.clone())); - let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); - let mut vte_parser = vte::Parser::new(); - let main_pid = 0; - let x = 0; - let y = 0; - let mut terminal_output = TerminalOutput::new(main_pid, fake_win_size, x, y); - - for frame in output_frames.iter() { - for byte in frame.iter() { - vte_parser.advance(&mut terminal_output, *byte); - } - let output_lines = terminal_output.read_buffer_as_lines(); - let cursor_position_in_last_line = terminal_output.cursor_position_in_last_line(); - let mut snapshot = String::new(); - for (line_index, line) in output_lines.iter().enumerate() { - for (character_index, terminal_character) in line.iter().enumerate() { - if line_index == output_lines.len() - 1 && character_index == cursor_position_in_last_line { - snapshot.push('█'); - } else { - snapshot.push(terminal_character.character); - } - } - if line_index != output_lines.len() - 1 { - snapshot.push('\n'); - } - } + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { assert_snapshot!(snapshot); } } @@ -61,33 +38,9 @@ pub fn split_terminals_vertically() { let mut fake_input_output = get_fake_os_input(&fake_win_size); fake_input_output.add_terminal_input(&[14, 17]); // split-vertically and quit (ctrl-n + ctrl-q) start(Box::new(fake_input_output.clone())); - let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); - let mut vte_parser = vte::Parser::new(); - let main_pid = 0; - let x = 0; - let y = 0; - let mut terminal_output = TerminalOutput::new(main_pid, fake_win_size, x, y); - - for frame in output_frames.iter() { - for byte in frame.iter() { - vte_parser.advance(&mut terminal_output, *byte); - } - let output_lines = terminal_output.read_buffer_as_lines(); - let cursor_position_in_last_line = terminal_output.cursor_position_in_last_line(); - let mut snapshot = String::new(); - for (line_index, line) in output_lines.iter().enumerate() { - for (character_index, terminal_character) in line.iter().enumerate() { - if line_index == output_lines.len() - 1 && character_index == cursor_position_in_last_line { - snapshot.push('█'); - } else { - snapshot.push(terminal_character.character); - } - } - if line_index != output_lines.len() - 1 { - snapshot.push('\n'); - } - } + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { assert_snapshot!(snapshot); } } @@ -103,33 +56,9 @@ pub fn split_terminals_horizontally() { let mut fake_input_output = get_fake_os_input(&fake_win_size); fake_input_output.add_terminal_input(&[2, 17]); // split-horizontally and quit (ctrl-b + ctrl-q) start(Box::new(fake_input_output.clone())); - let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); - let mut vte_parser = vte::Parser::new(); - let main_pid = 0; - let x = 0; - let y = 0; - let mut terminal_output = TerminalOutput::new(main_pid, fake_win_size, x, y); - - for frame in output_frames.iter() { - for byte in frame.iter() { - vte_parser.advance(&mut terminal_output, *byte); - } - let output_lines = terminal_output.read_buffer_as_lines(); - let cursor_position_in_last_line = terminal_output.cursor_position_in_last_line(); - let mut snapshot = String::new(); - for (line_index, line) in output_lines.iter().enumerate() { - for (character_index, terminal_character) in line.iter().enumerate() { - if line_index == output_lines.len() - 1 && character_index == cursor_position_in_last_line { - snapshot.push('█'); - } else { - snapshot.push(terminal_character.character); - } - } - if line_index != output_lines.len() - 1 { - snapshot.push('\n'); - } - } + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { assert_snapshot!(snapshot); } } @@ -163,34 +92,9 @@ pub fn resize_right_and_up_on_the_same_axis() { fake_input_output.add_terminal_input(&[2, 14, 16, 14, 16, 16, 12, 8, 11, 17]); start(Box::new(fake_input_output.clone())); - let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); - let mut vte_parser = vte::Parser::new(); - let main_pid = 0; - let x = 0; - let y = 0; - let mut terminal_output = TerminalOutput::new(main_pid, fake_win_size, x, y); - - for frame in output_frames.iter() { - for byte in frame.iter() { - vte_parser.advance(&mut terminal_output, *byte); - } - let output_lines = terminal_output.read_buffer_as_lines(); - let (cursor_x, cursor_y) = terminal_output.cursor_coordinates(); - let mut snapshot = String::new(); - for (line_index, line) in output_lines.iter().enumerate() { - for (character_index, terminal_character) in line.iter().enumerate() { - if line_index == cursor_y - 1 && character_index == cursor_x { - snapshot.push('█'); - } else { - snapshot.push(terminal_character.character); - } - } - if line_index != output_lines.len() - 1 { - snapshot.push('\n'); - } - } + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { assert_snapshot!(snapshot); } } - diff --git a/src/tests/integration/compatibility.rs b/src/tests/integration/compatibility.rs new file mode 100644 index 00000000..e5e10061 --- /dev/null +++ b/src/tests/integration/compatibility.rs @@ -0,0 +1,90 @@ +use ::nix::pty::Winsize; +use ::insta::assert_snapshot; +use ::std::collections::HashMap; + +use crate::start; +use crate::tests::possible_tty_inputs::Bytes; +use crate::tests::fakes::{FakeInputOutput}; +use crate::tests::utils::get_output_frame_snapshots; + +/* + * These tests are general compatibility tests for non-trivial scenarios running in the terminal. + * They use fake TTY input replicated from these scenarios (and so don't actually interact with the + * OS). + * + * They work like this: + * - receive fake TTY input containing various VTE instructions. + * - run that output through mosaic so it interprets it and creates its state based on it + * - read that state into a Human-readable snapshot and compare it to the expected snapshot for + * this scenario. + * + */ + +fn get_fake_os_input (fake_win_size: &Winsize, fixture_name: &str) -> FakeInputOutput { + let mut tty_inputs = HashMap::new(); + let fixture_bytes = Bytes::from_file_in_fixtures(&fixture_name); + tty_inputs.insert(fake_win_size.ws_col, fixture_bytes); + FakeInputOutput::new(fake_win_size.clone()).with_tty_inputs(tty_inputs) +} + +#[test] +pub fn run_bandwhich_from_fish_shell() { + let fake_win_size = Winsize { + ws_col: 116, + ws_row: 28, + ws_xpixel: 0, + ws_ypixel: 0, + }; + let fixture_name = "fish_and_bandwhich"; + let mut fake_input_output = get_fake_os_input(&fake_win_size, fixture_name); + fake_input_output.add_terminal_input(&[17]); // quit (ctrl-q) + start(Box::new(fake_input_output.clone())); + let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { + assert_snapshot!(snapshot); + } +} + +#[test] +pub fn fish_tab_completion_options() { + let fake_win_size = Winsize { + ws_col: 116, + ws_row: 28, + ws_xpixel: 0, + ws_ypixel: 0, + }; + let fixture_name = "fish_tab_completion_options"; + let mut fake_input_output = get_fake_os_input(&fake_win_size, fixture_name); + fake_input_output.add_terminal_input(&[17]); // quit (ctrl-q) + start(Box::new(fake_input_output.clone())); + let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { + assert_snapshot!(snapshot); + } +} + +#[test] +pub fn fish_select_tab_completion_options() { + // the difference between this and the previous test is that here we press + // twice, meaning the selection moves between the options and the command line + // changes. + // this is not clearly seen in the snapshot because it does not include styles, + // but we can see the command line change and the cursor staying in place + let fake_win_size = Winsize { + ws_col: 116, + ws_row: 28, + ws_xpixel: 0, + ws_ypixel: 0, + }; + let fixture_name = "fish_select_tab_completion_options"; + let mut fake_input_output = get_fake_os_input(&fake_win_size, fixture_name); + fake_input_output.add_terminal_input(&[17]); // quit (ctrl-q) + start(Box::new(fake_input_output.clone())); + let output_frames = fake_input_output.stdout_writer.output_frames.lock().unwrap(); + let snapshots = get_output_frame_snapshots(&output_frames, &fake_win_size); + for snapshot in snapshots { + assert_snapshot!(snapshot); + } +} diff --git a/src/tests/integration/mod.rs b/src/tests/integration/mod.rs index e17f1f8a..19c044e1 100644 --- a/src/tests/integration/mod.rs +++ b/src/tests/integration/mod.rs @@ -1,4 +1,5 @@ pub mod basic; +pub mod compatibility; pub mod resize_right; pub mod resize_left; pub mod resize_up; diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__basic__resize_right_and_up_on_the_same_axis-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__basic__resize_right_and_up_on_the_same_axis-2.snap index d37752a1..fd9db053 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__basic__resize_right_and_up_on_the_same_axis-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__basic__resize_right_and_up_on_the_same_axis-2.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__basic__split_terminals_horizontally-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__basic__split_terminals_horizontally-2.snap index 8e3c833d..1f81114b 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__basic__split_terminals_horizontally-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__basic__split_terminals_horizontally-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options-2.snap new file mode 100644 index 00000000..bdd05b0d --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options-2.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- + + + + + + + + + + + + + + + + + + + + + + +Welcome to fish, the friendly interactive shell +⋊> ~/c/mosaic on main ⨯ sudo badblock 11:32:233 +badblocks (Executable, 33kB) base64 (Executable, 42kB) bash (Executable, 906kB) +bandwhich (Executable, 3.0MB) basename (Executable, 38kB) bashbug (Executable, 6.8kB) +base32 (Executable, 42kB) basenc (Executable, 50kB) bass +Bye from Mosaic!█ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options.snap new file mode 100644 index 00000000..bccc706b --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_select_tab_completion_options.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- + + + + + + + + + + + + + + + + + + + + + + + +Welcome to fish, the friendly interactive shell +⋊> ~/c/mosaic on main ⨯ sudo badblock █ 11:32:233 +badblocks (Executable, 33kB) base64 (Executable, 42kB) bash (Executable, 906kB) +bandwhich (Executable, 3.0MB) basename (Executable, 38kB) bashbug (Executable, 6.8kB) +base32 (Executable, 42kB) basenc (Executable, 50kB) bass diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options-2.snap new file mode 100644 index 00000000..2f17b4c1 --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options-2.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- + + + + + + + + + + + + + + + + + + + + + + +Welcome to fish, the friendly interactive shell +⋊> ~/c/mosaic on main ⨯ sudo bandwhich 11:18:26 +badblocks (Executable, 33kB) base64 (Executable, 42kB) bash (Executable, 906kB) +bandwhich (Executable, 3.0MB) basename (Executable, 38kB) bashbug (Executable, 6.8kB) +base32 (Executable, 42kB) basenc (Executable, 50kB) bass +Bye from Mosaic!█ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options.snap new file mode 100644 index 00000000..fc92f8fe --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_tab_completion_options.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- + + + + + + + + + + + + + + + + + + + + + + + +Welcome to fish, the friendly interactive shell +⋊> ~/c/mosaic on main ⨯ sudo ba█dwhich 11:18:26 +badblocks (Executable, 33kB) base64 (Executable, 42kB) bash (Executable, 906kB) +bandwhich (Executable, 3.0MB) basename (Executable, 38kB) bashbug (Executable, 6.8kB) +base32 (Executable, 42kB) basenc (Executable, 50kB) bass diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell-2.snap new file mode 100644 index 00000000..9c90df81 --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell-2.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- +┌Utilization by process name───────────────────────────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down │ +│ │ +│firefox 3 46Bps / 57Bps │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). +Bye from Mosaic!█ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell.snap new file mode 100644 index 00000000..f8f4a539 --- /dev/null +++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__run_bandwhich_from_fish_shell.snap @@ -0,0 +1,32 @@ +--- +source: src/tests/integration/compatibility.rs +expression: snapshot +--- + Total Up / Down: 46Bps / 57Bps +┌Utilization by process name───────────────────────────────────────────────────────────────────────────────────────┐ +│Process Connections Up / Down │ +│ │ +│firefox 3 46Bps / 5█Bps │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +│ │ +└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ + Press to pause. Use to rearrange tables. (DNS queries hidden). diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_multiple_panes_above-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_multiple_panes_above-2.snap index b2a384ba..46b6d868 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_multiple_panes_above-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_multiple_panes_above-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_above-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_above-2.snap index b2a384ba..46b6d868 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_above-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_above-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_below-2.snap index b2a384ba..46b6d868 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_pane_below-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_current_pane-9.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_current_pane-9.snap index 255f4a62..d5389b0d 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_current_pane-9.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_current_pane-9.snap @@ -21,4 +21,4 @@ prompt $ │line15-bbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap index 3e3d2bbe..222d6b69 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap @@ -41,4 +41,4 @@ prompt $ │ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_with_current_pane-7.snap index 2ea4df2d..a21cf298 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_left_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_right_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_right_with_current_pane-7.snap index 2ea4df2d..a21cf298 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_right_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_aligned_right_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-2.snap index b2a384ba..46b6d868 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-4.snap index 3a959038..372e0af2 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_above_and_below-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_current_pane-9.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_current_pane-9.snap index 255f4a62..d5389b0d 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_current_pane-9.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_current_pane-9.snap @@ -21,4 +21,4 @@ prompt $ │line15-bbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap index 3e3d2bbe..222d6b69 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap @@ -41,4 +41,4 @@ prompt $ │ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_with_current_pane-7.snap index 2ea4df2d..a21cf298 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_left_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_right_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_right_with_current_pane-7.snap index 2ea4df2d..a21cf298 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_right_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_down__resize_down_with_panes_below_aligned_right_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_multiple_panes_to_the_left-5.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_multiple_panes_to_the_left-5.snap index 09408d88..21cbf228 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_multiple_panes_to_the_left-5.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_multiple_panes_to_the_left-5.snap @@ -21,4 +21,4 @@ prompt $ │line10-bbbbbbbbbb │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap index d2df344d..fbdc0640 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap index bb27dd0c..18a0aa00 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap index f52872e4..c9f1c991 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap index e6b8c460..79ab9146 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap index 48605097..08026a49 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_with_current_pane-7.snap index d2df344d..fbdc0640 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_left_aligned_top_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap index d2df344d..fbdc0640 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap index bb27dd0c..18a0aa00 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap index f52872e4..c9f1c991 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap index e6b8c460..79ab9146 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap index f4b24f00..dc49fdb4 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap @@ -31,7 +31,7 @@ prompt $ │line12-bbbbbbbbbb │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa│line12-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb a │line13-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap index 6c593b13..84792d8d 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap @@ -31,7 +31,7 @@ prompt $ │line16-bbbbbbbbbb ────────────────────────────────────────────────────────────│line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa│line12-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb a │line13-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap index 48605097..08026a49 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_with_current_pane-7.snap index d2df344d..fbdc0640 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_left__resize_left_with_panes_to_the_right_aligned_top_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_multiple_panes_to_the_left-5.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_multiple_panes_to_the_left-5.snap index b29ba823..cab24e28 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_multiple_panes_to_the_left-5.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_multiple_panes_to_the_left-5.snap @@ -21,4 +21,4 @@ prompt $ │line10-bbbbbbbbbb │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap index bc7487fc..a1e93515 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_bottom_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap index 1e4aa3b3..b2d071cd 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap index b9df1e41..c6f9ee89 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap index 716635ad..1cdb5ecd 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-2.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap index 95d8f670..5f2a1cce 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_panes_above_and_below-4.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_with_current_pane-7.snap index bc7487fc..a1e93515 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_left_aligned_top_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap index bc7487fc..a1e93515 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_bottom_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap index 1e4aa3b3..b2d071cd 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap index b9df1e41..c6f9ee89 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap index 716635ad..1cdb5ecd 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-2.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap index 960cec82..91b6d4ab 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-23.snap @@ -31,7 +31,7 @@ prompt $ │line12-bbbbbbbbbb │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa│line12-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb a │line13-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap index ce5b4946..fcd72d11 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-25.snap @@ -31,7 +31,7 @@ prompt $ │line16-bbbbbbbbbb ────────────────────────────────────────────────────────────│line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa│line12-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb a │line13-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap index 95d8f670..5f2a1cce 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below-4.snap @@ -41,4 +41,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_with_current_pane-7.snap index bc7487fc..a1e93515 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_right__resize_right_with_panes_to_the_right_aligned_top_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_multiple_panes_above-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_multiple_panes_above-2.snap index 9234fdda..ad632259 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_multiple_panes_above-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_multiple_panes_above-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_above-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_above-2.snap index 9234fdda..ad632259 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_above-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_above-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_below-2.snap index 9234fdda..ad632259 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_pane_below-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_current_pane-9.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_current_pane-9.snap index 8145320a..9885ff37 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_current_pane-9.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_current_pane-9.snap @@ -21,4 +21,4 @@ prompt $ │line15-bbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap index 54723f8e..b86c4f61 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_and_right_with_panes_to_the_left_and_right-10.snap @@ -41,4 +41,4 @@ prompt $ │ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_with_current_pane-7.snap index 261ec3cc..b20ed817 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_left_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_right_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_right_with_current_pane-7.snap index 261ec3cc..b20ed817 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_right_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_aligned_right_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-2.snap index 9234fdda..ad632259 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-2.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-2.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-4.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-4.snap index 5780ec4e..31e5ca9e 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-4.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_above_and_below-4.snap @@ -21,4 +21,4 @@ prompt $ -█ + diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_current_pane-9.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_current_pane-9.snap index 8145320a..9885ff37 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_current_pane-9.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_current_pane-9.snap @@ -21,4 +21,4 @@ prompt $ │line15-bbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap index 54723f8e..b86c4f61 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_and_right_with_to_the_left_and_right-10.snap @@ -41,4 +41,4 @@ prompt $ │ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line17-bbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line18-bbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb│line19-bbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ │prompt $ + │prompt $ │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_with_current_pane-7.snap index 261ec3cc..b20ed817 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_left_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_right_with_current_pane-7.snap b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_right_with_current_pane-7.snap index 261ec3cc..b20ed817 100644 --- a/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_right_with_current_pane-7.snap +++ b/src/tests/integration/snapshots/mosaic__tests__integration__resize_up__resize_up_with_panes_below_aligned_right_with_current_pane-7.snap @@ -21,4 +21,4 @@ prompt $ │prompt $ │line17-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line18-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb │line19-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -█ │prompt $ + │prompt $ diff --git a/src/tests/mod.rs b/src/tests/mod.rs index e27bc749..5bf3c0ea 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -1,5 +1,5 @@ pub mod integration; -pub mod possible_inputs; +pub mod possible_tty_inputs; pub mod tty_inputs; pub mod fakes; pub mod utils; diff --git a/src/tests/possible_inputs.rs b/src/tests/possible_tty_inputs.rs similarity index 81% rename from src/tests/possible_inputs.rs rename to src/tests/possible_tty_inputs.rs index 0cfef27c..950b1ae4 100644 --- a/src/tests/possible_inputs.rs +++ b/src/tests/possible_tty_inputs.rs @@ -1,4 +1,6 @@ use std::collections::HashMap; +use std::fs; +use std::path::PathBuf; use crate::tests::tty_inputs::{COL_10, COL_60, COL_14, COL_19, COL_20, COL_24, COL_29, COL_30, COL_34, COL_39, COL_40, COL_50, COL_70, COL_121}; #[derive(Clone, Debug)] @@ -14,6 +16,18 @@ impl Bytes { read_position: 0 } } + pub fn from_file_in_fixtures(file_name: &str) -> Self { + let mut path_to_file = PathBuf::new(); + path_to_file.push("src"); + path_to_file.push("tests"); + path_to_file.push("fixtures"); + path_to_file.push(file_name); + let content = fs::read(path_to_file).expect(&format!("could not read fixture {:?}", &file_name)); + Bytes { + content, + read_position: 0 + } + } pub fn content(mut self, content: Vec) -> Self { self.content = content; self @@ -33,7 +47,7 @@ impl Bytes { } } -pub fn get_possible_inputs () -> HashMap { // the key is the column count for this terminal input +pub fn get_possible_tty_inputs () -> HashMap { // the key is the column count for this terminal input let mut possible_inputs = HashMap::new(); let col_10_bytes = Bytes::new().content_from_str(&COL_10); let col_14_bytes = Bytes::new().content_from_str(&COL_14); diff --git a/src/tests/utils.rs b/src/tests/utils.rs index a27717f9..dd0c2409 100644 --- a/src/tests/utils.rs +++ b/src/tests/utils.rs @@ -18,7 +18,7 @@ pub fn get_output_frame_snapshots(output_frames: &[Vec], win_size: &Winsize) let mut snapshot = String::new(); for (line_index, line) in output_lines.iter().enumerate() { for (character_index, terminal_character) in line.iter().enumerate() { - if line_index == cursor_y - 1 && character_index == cursor_x { + if line_index == cursor_y && character_index == cursor_x { snapshot.push('█'); } else { snapshot.push(terminal_character.character);