Merge branch 'KoboldAI:main' into united

This commit is contained in:
henk717 2022-04-10 09:05:31 +02:00 committed by GitHub
commit 9ac47f6f54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -1359,9 +1359,7 @@ function chunkOnBeforeInput(event) {
document.execCommand('delete');
}
var s = rangy.getSelection();
if(!s.isCollapsed) {
s.deleteFromDocument();
}
if(buildChunkSetFromNodeArray(getSelectedNodes()).size === 0) {
var s = rangy.getSelection();
var r = s.getRangeAt(0);