mirror of https://github.com/helix-editor/helix
Clear history after a change
parent
6f49ff2229
commit
c0f8e18437
|
@ -1468,6 +1468,9 @@ impl Document {
|
||||||
.ensure_invariants(self.text.slice(..));
|
.ensure_invariants(self.text.slice(..));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reset the selection history after any change
|
||||||
|
self.selections_history.clear();
|
||||||
|
|
||||||
for view_data in self.view_data.values_mut() {
|
for view_data in self.view_data.values_mut() {
|
||||||
view_data.view_position.anchor = transaction
|
view_data.view_position.anchor = transaction
|
||||||
.changes()
|
.changes()
|
||||||
|
|
Loading…
Reference in New Issue