google / vim-codefmt

Vim plugin for syntax-aware code formatting
Apache License 2.0
1.11k stars 114 forks source link

ruff formatter: Fix bug running non-stdin version #239

Closed dbarnett closed 1 month ago

dbarnett commented 1 month ago

Forgot to pass the "-" placeholder for stdin. Apparently if you pass --stdin-filename ruff assumes stdin, but if there's no filename it can get confused and format everything in-place instead of formatting the editor buffer.

Fixes #223 (properly).