Handle unselecting all highlights properly

This commit is contained in:
наб 2020-08-21 02:14:21 +02:00 committed by Drew DeVault
parent 25f5679663
commit f1c82f919a
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ const spansFromLineNumbers = lineNos => {
* Returns a hash matching the given set of line numbers.
*/
const hashFromLineNumbers = lineNos => {
if (lineNos.size === 0) {
return "";
}
const spans = spansFromLineNumbers(lineNos);
const parts = [];