Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 82576d3

Browse files
committed
[clang-diff] Properly clear the selection in HTML diff
Reviewers: arphaman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D37072 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311575 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 5404f12 commit 82576d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/clang-diff/ClangDiff.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ highlightStack = []
140140
function clearHighlight() {
141141
while (highlightStack.length) {
142142
var [l, r] = highlightStack.pop()
143-
document.getElementById(l).style.backgroundColor = 'white'
143+
document.getElementById(l).style.backgroundColor = 'inherit'
144144
if (r[1] != '-')
145-
document.getElementById(r).style.backgroundColor = 'white'
145+
document.getElementById(r).style.backgroundColor = 'inherit'
146146
}
147147
}
148148
function highlight(event) {

0 commit comments

Comments
 (0)