mirror of
https://github.com/gryf/gentoo-patches.git
synced 2025-12-17 13:40:16 +01:00
Added patch for wezterm
Added new method for getting seqno field for the pane, which indicates changes that happened on the pane, storing and comparing this field in lua config, helps with that task for identifying tabs, which are still active with those, where activity has stopped already.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
diff --git a/lua-api-crates/mux/src/pane.rs b/lua-api-crates/mux/src/pane.rs
|
||||
index f0d919e16..0a16b03d3 100644
|
||||
--- a/lua-api-crates/mux/src/pane.rs
|
||||
+++ b/lua-api-crates/mux/src/pane.rs
|
||||
@@ -409,6 +409,12 @@ impl UserData for MuxPane {
|
||||
let pane = this.resolve(&mux)?;
|
||||
Ok(pane.tty_name())
|
||||
});
|
||||
+
|
||||
+ methods.add_method("get_seqno", move |_lua, this, ()| {
|
||||
+ let mux = Mux::get();
|
||||
+ let pane = this.resolve(&mux)?;
|
||||
+ Ok(pane.get_current_seqno())
|
||||
+ });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user