aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/edit-attention.js
diff options
context:
space:
mode:
authorezxzeng <zhixuan.zeng@gmail.com>2023-11-07 20:25:27 +0000
committerGitHub <noreply@github.com>2023-11-07 20:25:27 +0000
commitf9c14a8c8c8b682c2a7f7a11306b26e2a28ebeec (patch)
tree1c7f6abc11bd2aacd2a0d16a0b7db1963c9b26cd /javascript/edit-attention.js
parent759515316e8ec536f34fad616e8c6a33674a164b (diff)
parent5e80d9ee99c5899e5e2b130408ffb65a0585a62a (diff)
downloadstable-diffusion-webui-gfx803-f9c14a8c8c8b682c2a7f7a11306b26e2a28ebeec.tar.gz
stable-diffusion-webui-gfx803-f9c14a8c8c8b682c2a7f7a11306b26e2a28ebeec.tar.bz2
stable-diffusion-webui-gfx803-f9c14a8c8c8b682c2a7f7a11306b26e2a28ebeec.zip
Merge branch 'dev' into ui_mobile_optimizations
Diffstat (limited to 'javascript/edit-attention.js')
-rw-r--r--javascript/edit-attention.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/edit-attention.js b/javascript/edit-attention.js
index 04464100..688c2f11 100644
--- a/javascript/edit-attention.js
+++ b/javascript/edit-attention.js
@@ -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);