Various minor fixes in preparation for new release.

This commit is contained in:
Storm Dragon
2025-10-17 21:26:13 -04:00
parent 5ef5faaebe
commit af4740d5ad
4 changed files with 33 additions and 24 deletions

View File

@@ -25,18 +25,19 @@ class command:
"""Check if this delta was already handled by tab completion to avoid duplicates"""
if "tabCompletion" not in self.env["commandBuffer"]:
return False
tab_state = self.env["commandBuffer"]["tabCompletion"]
# Check if this exact delta was processed recently by tab completion
if (tab_state.get("lastProcessedDelta") == delta_text and
if (tab_state.get("lastProcessedDelta") == delta_text and
tab_state.get("lastProcessedTime")):
# Only suppress if processed within the last 100ms to avoid stale suppression
# Only suppress if processed within the last 50ms to avoid stale suppression
# Reduced from 100ms to minimize false positives with rapid multi-line updates
time_since_processed = time.time() - tab_state["lastProcessedTime"]
if time_since_processed <= 0.1:
if time_since_processed <= 0.05:
return True
return False
def run(self):