Skip to content

fix: default auto_match to false on Windows due to bracketed paste limitation#61

Merged
eitsupi merged 5 commits intomainfrom
fix/windows-auto-match-default
Feb 5, 2026
Merged

fix: default auto_match to false on Windows due to bracketed paste limitation#61
eitsupi merged 5 commits intomainfrom
fix/windows-auto-match-default

Conversation

@eitsupi
Copy link
Copy Markdown
Owner

@eitsupi eitsupi commented Feb 5, 2026

Summary

  • Change auto_match default to false on Windows
  • Workaround for crossterm not supporting bracketed paste on Windows, which causes brackets to be incorrectly auto-completed when pasting

Changes

  • Set auto_match: !cfg!(windows) in EditorConfig::default()
  • Update doc comment with platform-specific default values
  • Update JSON Schema description
  • Skip snapshot test on Windows and add explicit Windows-specific test

Background

crossterm does not set ENABLE_VIRTUAL_TERMINAL_INPUT and does not parse ANSI sequences on Windows, so bracketed paste does not work. This causes issues when pasting code - for example, pasting ( results in ().

Users can still explicitly enable auto_match = true in their config, but pasting issues become their own responsibility.

Test plan

  • Verify snapshot tests pass on Linux
  • Verify tests pass on Windows CI

🤖 Generated with Claude Code

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants