diff options
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/mod.rs | 1 | ||||
| -rw-r--r-- | src/api/schema.rs | 2 | ||||
| -rw-r--r-- | src/api/server.rs | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs index d28a82ae..bd2983e4 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -59,6 +59,7 @@ pub(crate) fn request_changes_ui(request: &Request) -> bool { | Method::PaneFocusDirection(_) | Method::PaneResize(_) | Method::PaneScroll(_) + | Method::PaneClear(_) | Method::PaneEditScrollback(_) | Method::PaneFocus(_) | Method::PaneInputSet(_) diff --git a/src/api/schema.rs b/src/api/schema.rs index 7c58fb69..e6c678dc 100644 --- a/src/api/schema.rs +++ b/src/api/schema.rs @@ -165,6 +165,8 @@ pub enum Method { PaneResize(PaneResizeParams), #[serde(rename = "pane.scroll")] PaneScroll(PaneScrollParams), + #[serde(rename = "pane.clear")] + PaneClear(PaneTarget), #[serde(rename = "pane.edit_scrollback")] PaneEditScrollback(PaneTarget), #[serde(rename = "pane.selection.read")] diff --git a/src/api/server.rs b/src/api/server.rs index 55571d75..03724813 100644 --- a/src/api/server.rs +++ b/src/api/server.rs @@ -457,6 +457,7 @@ pub(crate) fn api_method_name(method: &Method) -> &'static str { Method::PaneFocusDirection(_) => "pane.focus_direction", Method::PaneResize(_) => "pane.resize", Method::PaneScroll(_) => "pane.scroll", + Method::PaneClear(_) => "pane.clear", Method::PaneEditScrollback(_) => "pane.edit_scrollback", Method::PaneSelectionRead(_) => "pane.selection.read", Method::PaneCopyMotion(_) => "pane.copy_motion", |
