Editor: set selection to none when deleted
This commit is contained in:
parent
9278e7d0c4
commit
1cf36f8a5d
1 changed files with 3 additions and 0 deletions
|
|
@ -328,6 +328,9 @@ impl Edit for Editor {
|
||||||
// Reset cursor to start of selection
|
// Reset cursor to start of selection
|
||||||
self.cursor = start;
|
self.cursor = start;
|
||||||
|
|
||||||
|
// Reset selection to None
|
||||||
|
self.selection = Selection::None;
|
||||||
|
|
||||||
// Delete from start to end of selection
|
// Delete from start to end of selection
|
||||||
self.delete_range(start, end);
|
self.delete_range(start, end);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue