[clang-diff] Properly clear the selection in HTML diff

Reviewers: arphaman

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D37072

llvm-svn: 311575
This commit is contained in:
Johannes Altmanninger 2017-08-23 16:52:15 +00:00
parent f8774f1d73
commit 38df0fa640
1 changed files with 2 additions and 2 deletions

View File

@ -140,9 +140,9 @@ highlightStack = []
function clearHighlight() {
while (highlightStack.length) {
var [l, r] = highlightStack.pop()
document.getElementById(l).style.backgroundColor = 'white'
document.getElementById(l).style.backgroundColor = 'inherit'
if (r[1] != '-')
document.getElementById(r).style.backgroundColor = 'white'
document.getElementById(r).style.backgroundColor = 'inherit'
}
}
function highlight(event) {