From 84260e6b0d82f8aca418a55147869d3560b8fad1 Mon Sep 17 00:00:00 2001 From: gryf Date: Thu, 24 Aug 2023 12:52:16 +0200 Subject: [PATCH] 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. --- ...m-20230712-072601-add-get_seqno-method.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 x11-terms/wezterm/wezterm-20230712-072601-add-get_seqno-method.patch diff --git a/x11-terms/wezterm/wezterm-20230712-072601-add-get_seqno-method.patch b/x11-terms/wezterm/wezterm-20230712-072601-add-get_seqno-method.patch new file mode 100644 index 0000000..71c915b --- /dev/null +++ b/x11-terms/wezterm/wezterm-20230712-072601-add-get_seqno-method.patch @@ -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()) ++ }); + } + } +