Skip to content

Commit

Permalink
Editor: set selection to none when deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Nov 30, 2023
1 parent 9278e7d commit 1cf36f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/edit/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ impl Edit for Editor {
// Reset cursor to start of selection
self.cursor = start;

// Reset selection to None
self.selection = Selection::None;

// Delete from start to end of selection
self.delete_range(start, end);

Expand Down

0 comments on commit 1cf36f8

Please sign in to comment.