diff options
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r-- | helix-term/src/ui/editor.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index f5598095..d99f1a4e 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1029,8 +1029,8 @@ impl EditorView { if doc .selection(view.id) .primary() - .fragment(doc.text().slice(..)) - .width() + .slice(doc.text().slice(..)) + .len_chars() <= 1 { return EventResult::Ignored(None); |