From dee10c2f2160b636f9a0a98b3ba8e4e3fe3e9eb6 Mon Sep 17 00:00:00 2001 From: Gus Wynn Date: Thu, 8 Apr 2021 09:04:31 -0700 Subject: [PATCH] Support unicode charaters in --- wezterm-gui/src/selection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wezterm-gui/src/selection.rs b/wezterm-gui/src/selection.rs index d72d9c1d3..a925d99e9 100644 --- a/wezterm-gui/src/selection.rs +++ b/wezterm-gui/src/selection.rs @@ -52,7 +52,7 @@ pub struct SelectionRange { } fn is_double_click_word(s: &str) -> bool { - match s.len() { + match s.chars().count() { 1 => !config::configuration().selection_word_boundary.contains(s), 0 => false, _ => true,