Unverified Commit 1f373a2b authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub
Browse files

Merge pull request #13829 from AUTOMATIC1111/paren-fix

Fix parenthesis auto selection
parents 4c423f6d 8052a497
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ function keyupEditAttention(event) {
        if (afterParen == -1) return false;

        let afterOpeningParen = after.indexOf(OPEN);
        if (afterOpeningParen != -1 && afterOpeningParen < beforeParen) return false;
        if (afterOpeningParen != -1 && afterOpeningParen < afterParen) return false;

        // Set the selection to the text between the parenthesis
        const parenContent = text.substring(beforeParen + 1, selectionStart + afterParen);