]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix an infinite loop when using `# fmt: on/off` ... (#3158)
authorYilei "Dolee" Yang <yileiyang@google.com>
Wed, 20 Jul 2022 00:57:23 +0000 (17:57 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Jul 2022 00:57:23 +0000 (20:57 -0400)
commit249c6536c4dff50773f30f222d1f81f0afe41f4c
treebf4b14d20a362e6514eab6942d650b4a3c3164c5
parent6ea4eddf936e88c24a6757c0c858812d5ca1a9c6
Fix an infinite loop when using `# fmt: on/off` ... (#3158)

... in the middle of an expression or code block by adding a missing return.

Co-authored-by: Richard Si <63936253+ichard26@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
CHANGES.md
src/black/comments.py
tests/data/simple_cases/fmtonoff5.py [new file with mode: 0644]