0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-09 20:04:33 +01:00
This commit is contained in:
Lunny Xiao 2025-11-24 10:03:00 -08:00
parent 5580cc7bb5
commit 83d18d6225
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -216,7 +216,9 @@ function handleDiffLineNumberClick(cell: HTMLElement, e: MouseEvent) {
};
if (applyDiffLineSelection(container, range)) {
diffSelectionStart = {...info, container};
if (!e.shiftKey || !diffSelectionStart || diffSelectionStart.container !== container || diffSelectionStart.fragment !== info.fragment) {
diffSelectionStart = {...info, container};
}
window.getSelection().removeAllRanges();
}
}