aboutsummaryrefslogtreecommitdiff
path: root/src/client/shell/word_selection.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/shell/word_selection.rs')
-rw-r--r--src/client/shell/word_selection.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/shell/word_selection.rs b/src/client/shell/word_selection.rs
index 42a03fc2..f4329ced 100644
--- a/src/client/shell/word_selection.rs
+++ b/src/client/shell/word_selection.rs
@@ -189,8 +189,9 @@ impl ClientShellState {
other => {
if matches!(other, Ok(value) if !matches!(value, crate::api::schema::ResponseResult::PaneSelection { .. }))
{
- self.endpoint_error =
- Some("endpoint returned an unexpected word-selection result".to_owned());
+ self.set_endpoint_error(
+ "endpoint returned an unexpected word-selection result",
+ );
}
self.cancel_word_selection();
return (true, Vec::new());