mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-10 15:24:54 +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)) {
|
if (applyDiffLineSelection(container, range)) {
|
||||||
|
if (!e.shiftKey || !diffSelectionStart || diffSelectionStart.container !== container || diffSelectionStart.fragment !== info.fragment) {
|
||||||
diffSelectionStart = {...info, container};
|
diffSelectionStart = {...info, container};
|
||||||
|
}
|
||||||
window.getSelection().removeAllRanges();
|
window.getSelection().removeAllRanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user