aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2025-07-09 17:32:41 +0200
committerGitHub <noreply@github.com>2025-07-09 17:32:41 +0200
commit8113ddf9dbbf04bf8bb5e33c8de0e7d55155d277 (patch)
treefaa9a979f08a832faa46ccb7b28e0558d32f74a9 /src
parentfix(web-client): use default_layout if configured (#4278) (diff)
downloadsl0ppij-8113ddf9dbbf04bf8bb5e33c8de0e7d55155d277.tar.gz
sl0ppij-8113ddf9dbbf04bf8bb5e33c8de0e7d55155d277.tar.xz
sl0ppij-8113ddf9dbbf04bf8bb5e33c8de0e7d55155d277.zip
fix(compact-bar): fix cursor length calculation for multiple users (#4279)
* fix(compact-bar): account for multiplayer cursor length * fix(e2e): account for races in tmux mode * style(fmt): rustfmt * docs(changelog): add PR
Diffstat (limited to 'src')
-rw-r--r--src/tests/e2e/cases.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/e2e/cases.rs b/src/tests/e2e/cases.rs
index e928376c..c122f9f8 100644
--- a/src/tests/e2e/cases.rs
+++ b/src/tests/e2e/cases.rs
@@ -101,8 +101,12 @@ fn account_for_races_in_snapshot(snapshot: String) -> String {
// once that happens, we should be able to remove this hack (and adjust the snapshots for the
// trailing spaces that we had to get rid of here)
let base_replace = Regex::new(r"Alt <\[\]>  BASE \s*\n").unwrap();
+ let base_replace_tmux_mode = Regex::new(r"Alt \[\|SPACE\|Alt \]  BASE \s*\n").unwrap();
let eol_arrow_replace = Regex::new(r"\s*\n").unwrap();
let snapshot = base_replace.replace_all(&snapshot, "\n").to_string();
+ let snapshot = base_replace_tmux_mode
+ .replace_all(&snapshot, "\n")
+ .to_string();
let snapshot = eol_arrow_replace.replace_all(&snapshot, "\n").to_string();
snapshot