Pass the pending selection to update_selections and set_selections

This helps us preserve our invariant of always having at least a pending selection in set_selections when comparing old and new cursor positions.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2022-02-11 10:07:42 -07:00
co-authored by Max Brunsfeld
parent ad9a0e2d4f
commit fa194c8e14
2 changed files with 80 additions and 71 deletions
+1 -1
View File
@@ -490,7 +490,7 @@ impl ProjectDiagnosticsEditor {
}
}
}
editor.update_selections(selections, None, cx);
editor.update_selections(selections, None, None, cx);
Some(())
});