diff options
author | Christian Duerr <contact@christianduerr.com> | 2024-11-22 01:07:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-22 01:07:08 +0000 |
commit | 3ac4904eb5a1cc15cc02b077c118f1ffcb9e6916 (patch) | |
tree | 73106c776b9796d4712fa22de356ef9725e2b1c0 /alacritty_terminal/src/term/mod.rs | |
parent | 4f739a7e2b933f6828ebf64654c8a8c573bf0ec1 (diff) | |
download | r-alacritty-3ac4904eb5a1cc15cc02b077c118f1ffcb9e6916.tar.gz r-alacritty-3ac4904eb5a1cc15cc02b077c118f1ffcb9e6916.tar.bz2 r-alacritty-3ac4904eb5a1cc15cc02b077c118f1ffcb9e6916.zip |
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.
Diffstat (limited to 'alacritty_terminal/src/term/mod.rs')
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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<T> Term<T> { &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. |