mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
Use char level diff for Rewrap action for cursor preservation + not reinserting all text
This commit is contained in:
parent
2c4984091c
commit
3104b4235b
@ -7123,7 +7123,7 @@ impl Editor {
|
||||
tab_size,
|
||||
);
|
||||
|
||||
let diff = TextDiff::from_lines(&selection_text, &wrapped_text);
|
||||
let diff = TextDiff::from_chars(&selection_text, &wrapped_text);
|
||||
let mut offset = start.to_offset(&buffer);
|
||||
let mut moved_since_edit = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user