From 3ac4904eb5a1cc15cc02b077c118f1ffcb9e6916 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Fri, 22 Nov 2024 01:07:08 +0000 Subject: Fix vi motion with wide semantic escape chars This patch fixes an issue where the semantic vi motion commands `SemanticRight` and `SemanticLeft` were not behaving as expected when a fullwidth character was used as a semantic character. Closes #8314. --- alacritty_terminal/src/term/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'alacritty_terminal/src/term/mod.rs') diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 1f1e52c1..c2d77ec7 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -930,6 +930,11 @@ impl Term { &self.config.semantic_escape_chars } + #[cfg(test)] + pub(crate) fn set_semantic_escape_chars(&mut self, semantic_escape_chars: &str) { + self.config.semantic_escape_chars = semantic_escape_chars.into(); + } + /// Active terminal cursor style. /// /// While vi mode is active, this will automatically return the vi mode cursor style. -- cgit