mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-24 23:47:05 +00:00
Prevent moving across excerpts on Editor::delete
This commit is contained in:
parent
e46d1549d6
commit
8032324470
1 changed files with 3 additions and 1 deletions
|
@ -3557,7 +3557,9 @@ impl Editor {
|
|||
s.move_with(|map, selection| {
|
||||
if selection.is_empty() && !line_mode {
|
||||
let cursor = movement::right(map, selection.head());
|
||||
selection.set_head(cursor, SelectionGoal::None);
|
||||
selection.end = cursor;
|
||||
selection.reversed = true;
|
||||
selection.goal = SelectionGoal::None;
|
||||
}
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue