Skip to content

Commit

Permalink
Fix crash on search reopening
Browse files Browse the repository at this point in the history
Co-authored-by: Ken Chou <[email protected]>
  • Loading branch information
Mrreadiness and kenchou authored Jun 13, 2024
1 parent f9e4d82 commit b5184df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wezterm-gui/src/overlay/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl CopyOverlay {
} else {
params.pattern
};
let search_line = LineEditBuffer::new(&pattern, unicode_column_width(&pattern, None));
let search_line = LineEditBuffer::new(&pattern, pattern.len());

let mut render = CopyRenderable {
cursor,
Expand Down

0 comments on commit b5184df

Please sign in to comment.