From 75ec4828cdcfbb39d6828438d40bffc57d528420 Mon Sep 17 00:00:00 2001 From: kotaindah55 Date: Mon, 17 Mar 2025 23:29:32 +0200 Subject: [PATCH] refactor: rename toggleDelim() to toggleInlineDelim --- src/editor-mode/formatting/Formatter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor-mode/formatting/Formatter.ts b/src/editor-mode/formatting/Formatter.ts index cc968de..d3f9674 100644 --- a/src/editor-mode/formatting/Formatter.ts +++ b/src/editor-mode/formatting/Formatter.ts @@ -65,7 +65,7 @@ export class Formatter { let { curTokenMap, curRange, tagStr, precise } = state, firstToken = curTokenMap ? tokens[curTokenMap[0]] : null; if (!precise) { - this.toggleDelim(); + this.toggleInlineDelim(); } else if (!firstToken) { this.wrap(); } else if (firstToken.from > curRange.from || firstToken.to < curRange.to) { @@ -237,7 +237,7 @@ export class Formatter { } } /** Run only when tidier formatting is switched off. */ - toggleDelim() { + toggleInlineDelim() { let { curRange, delimStr, tagStr } = this.state, delimLen = delimStr.length, selectedStrWithOverlappedEdge = this.doc.sliceString(curRange.from - delimLen, curRange.to + delimLen),