From 385f9d1c4f5f4d6d6cabfe9514b7d8705a1a5768 Mon Sep 17 00:00:00 2001 From: IceSandwich Date: Wed, 16 Jul 2025 10:58:03 +0800 Subject: [PATCH] remove period handling completely --- web/js/autocomplete.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/js/autocomplete.js b/web/js/autocomplete.js index ce0b484..e989538 100644 --- a/web/js/autocomplete.js +++ b/web/js/autocomplete.js @@ -212,10 +212,9 @@ function getCurrentPartialTag(inputElement) { // Find the last newline or comma before the cursor const lastNewLine = text.lastIndexOf('\n', cursorPos - 1); const lastComma = text.lastIndexOf(',', cursorPos - 1); - const lastPeriod = text.lastIndexOf('.', cursorPos - 1); // Get the position of the last separator (newline or comma) before cursor - const lastSeparator = Math.max(lastNewLine, lastComma, lastPeriod); + const lastSeparator = Math.max(lastNewLine, lastComma); const start = lastSeparator === -1 ? 0 : lastSeparator + 1; // Check if the cursor is inside a prompt weight modifier (e.g., :1.2, :.5, :1.)