Commit 8052a497 authored by missionfloyd's avatar missionfloyd

Fix parenthesis auto selection

Fixes #13813
parent 464fbcd9
...@@ -28,7 +28,7 @@ function keyupEditAttention(event) { ...@@ -28,7 +28,7 @@ function keyupEditAttention(event) {
if (afterParen == -1) return false; if (afterParen == -1) return false;
let afterOpeningParen = after.indexOf(OPEN); 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 // Set the selection to the text between the parenthesis
const parenContent = text.substring(beforeParen + 1, selectionStart + afterParen); const parenContent = text.substring(beforeParen + 1, selectionStart + afterParen);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment