Skip to content

Commit

Permalink
chore(control_mode): fix splitn parts number
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonGepting committed Feb 10, 2024
1 parent c067c96 commit ea4a3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control_mode/control_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl<S: AsRef<str> + std::fmt::Display> ControlModeLine for S {
#[cfg(feature = "tmux_1_8")]
s if s.starts_with(NOTIFICATION_LAYOUT_CHANGE) => {
#[cfg(feature = "tmux_2_2")]
let v: Vec<_> = s.splitn(4, CONTROL_MODE_SEPARATOR).collect();
let v: Vec<_> = s.splitn(5, CONTROL_MODE_SEPARATOR).collect();
#[cfg(all(feature = "tmux_1_8", not(feature = "tmux_2_2")))]
let v: Vec<_> = s.splitn(3, CONTROL_MODE_SEPARATOR).collect();
let window_id = v.get(1).ok_or(Error::CMParseStr)?.to_string();
Expand Down

0 comments on commit ea4a3a3

Please sign in to comment.