@@ -1,5 +1,6 @@
11//! Input event handling, currently backed by crossterm.
22use anyhow::{anyhow, Error};
3+use helix_core::unicode::width::UnicodeWidthStr;
34use serde::de::{self, Deserialize, Deserializer};
45use std::fmt;
56
@@ -90,9 +91,9 @@ impl fmt::Display for KeyEvent {
9091 }
9192}
9293
93−impl unicode_width::UnicodeWidthStr for KeyEvent {
94+impl UnicodeWidthStr for KeyEvent {
9495 fn width(&self) -> usize {
95− use unicode_width::UnicodeWidthChar;
96+ use helix_core::unicode::width::UnicodeWidthChar;
9697 let mut width = match self.code {
9798 KeyCode::Backspace => keys::BACKSPACE.len(),
9899 KeyCode::Enter => keys::ENTER.len(),