aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-findfile.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/repo-findfile.ts')
-rw-r--r--web_src/js/features/repo-findfile.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/features/repo-findfile.ts b/web_src/js/features/repo-findfile.ts
index 1f151d7056..6500978bc8 100644
--- a/web_src/js/features/repo-findfile.ts
+++ b/web_src/js/features/repo-findfile.ts
@@ -90,6 +90,7 @@ function filterRepoFiles(filter) {
const span = document.createElement('span');
// safely escape by using textContent
span.textContent = part;
+ span.title = span.textContent;
// if the target file path is "abc/xyz", to search "bx", then the matchResult is ['a', 'b', 'c/', 'x', 'yz']
// the matchResult[odd] is matched and highlighted to red.
if (index % 2 === 1) span.classList.add('ui', 'text', 'red');