mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-09 17:53:50 +01:00
Fix bug
This commit is contained in:
parent
5580cc7bb5
commit
83d18d6225
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user