mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 13:52:55 +03:00
wezterm: search: fix cursor position to use grapheme width
This commit is contained in:
parent
633a4baad1
commit
44c3ee0e83
@ -310,7 +310,7 @@ impl Renderable for SearchRenderable {
|
||||
fn get_cursor_position(&self) -> StableCursorPosition {
|
||||
// move to the search box
|
||||
StableCursorPosition {
|
||||
x: 8 + self.pattern.len(), // FIXME: ucwidth
|
||||
x: 8 + term::unicode_column_width(&self.pattern),
|
||||
y: self.compute_search_row(),
|
||||
shape: termwiz::surface::CursorShape::SteadyBlock,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user