mirror of
https://github.com/gryf/gentoo-patches.git
synced 2025-12-17 05:30:18 +01:00
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.
18 lines
539 B
Diff
18 lines
539 B
Diff
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())
|
|
+ });
|
|
}
|
|
}
|
|
|