]> 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:

Refactor logic for stub empty lines (#2796)
authorShantanu <12621235+hauntsaninja@users.noreply.github.com>
Sat, 22 Jan 2022 15:29:38 +0000 (07:29 -0800)
committerGitHub <noreply@github.com>
Sat, 22 Jan 2022 15:29:38 +0000 (07:29 -0800)
commit811de5f36bb1bb2bc7e14c186cf1af6badb77475
tree7ba18867f7b5203b13dc7267013c27810727a05b
parentfb1d1b2fc85efe422b6ff32d05f537d5394f6259
Refactor logic for stub empty lines (#2796)

This PR is intended to have no change to semantics.

This is in preparation for #2784 which will likely introduce more logic
that depends on `current_line.depth`.

Inlining the subtraction gets rid of offsetting and makes it much easier
to see what the result will be.
src/black/lines.py