Disallow backspace undo if cursor hints are used
This commit is contained in:
parent
61c17b26a4
commit
400d8cf9d8
|
@ -271,7 +271,10 @@ impl<
|
|||
|
||||
self.inject_text(&config, &target_string, m.force_clipboard);
|
||||
|
||||
expansion_data = Some((m.triggers[trigger_offset].clone(), target_string.chars().count() as i32));
|
||||
// Disallow undo backspace if cursor positioning is used
|
||||
if cursor_rewind.is_none() {
|
||||
expansion_data = Some((m.triggers[trigger_offset].clone(), target_string.chars().count() as i32));
|
||||
}
|
||||
|
||||
if let Some(moves) = cursor_rewind {
|
||||
// Simulate left arrow key presses to bring the cursor into the desired position
|
||||
|
|
Loading…
Reference in New Issue
Block a user