]> 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 issue #5 (Correct indent after end of block)
authorhas2k1 <has2k1@gmail.com>
Thu, 31 Oct 2013 10:17:16 +0000 (05:17 -0500)
committerhas2k1 <has2k1@gmail.com>
Thu, 31 Oct 2013 10:17:16 +0000 (05:17 -0500)
commit18593f1150972346884dac64d7e71fd6a5f2b0fc
tree45365b2185be9d71a07840e0b85dc9a5b8346ffb
parentce046bf478fe986946f751167ec1c70166d578cb
Fix issue #5 (Correct indent after end of block)

Problem
-------
Given two adjacent blocks where the 2nd block has
an equal or smaller indentation level compared to the 1st
block. If the blocks are not separated by an empty line,
the 2nd block will be placed (indented) inside the 1st
block.

This changes the meaning of code that already adheres to the
pep8 standard.

Solution
--------
Do not inherit indentation of the previous line if the current line
has less indentation but is valid.
indent/python.vim
spec/indent/indent_spec.rb