mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 05:00:16 +00:00
windows: Fix crash in vim normal mode when IME key is pressed (#11387)
Fixed crash in vim normal mode when ime key press. Release Notes: - N/A
This commit is contained in:
parent
9edd81c740
commit
530bc5c99e
1 changed files with 1 additions and 2 deletions
|
@ -790,8 +790,7 @@ impl WindowsWindowInner {
|
|||
let Some(mut input_handler) = self.input_handler.take() else {
|
||||
return Some(1);
|
||||
};
|
||||
// we are composing, this should never fail
|
||||
let caret_range = input_handler.selected_text_range().unwrap();
|
||||
let caret_range = input_handler.selected_text_range().unwrap_or_default();
|
||||
let caret_position = input_handler.bounds_for_range(caret_range).unwrap();
|
||||
self.input_handler.set(Some(input_handler));
|
||||
let scale_factor = self.scale_factor.get();
|
||||
|
|
Loading…
Reference in a new issue