mirror of
https://github.com/ilyakooo0/helix.git
synced 2025-01-07 15:30:02 +03:00
Add a test case for undo/redo across splits
This commit is contained in:
parent
9387dfafed
commit
4802f26a23
@ -151,5 +151,15 @@ async fn test_changes_in_splits_apply_to_all_views() -> anyhow::Result<()> {
|
||||
// was not updated and after the `kd` step, pointed outside of the document.
|
||||
test(("#[|]#", "<C-w>v[<space><C-s><C-w>wkd<C-w>qd", "#[|]#")).await?;
|
||||
|
||||
// Transactions are applied to the views for windows lazily when they are focused.
|
||||
// This case panics if the transactions and inversions are not applied in the
|
||||
// correct order as we switch between windows.
|
||||
test((
|
||||
"#[|]#",
|
||||
"[<space>[<space>[<space><C-w>vuuu<C-w>wUUU<C-w>quuu",
|
||||
"#[|]#",
|
||||
))
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user