]> 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 folding with code block and level setting
authorHiroshi Shirosaki <h.shirosaki@gmail.com>
Thu, 14 Jan 2016 08:28:38 +0000 (17:28 +0900)
committerHiroshi Shirosaki <h.shirosaki@gmail.com>
Thu, 14 Jan 2016 08:50:16 +0000 (17:50 +0900)
commitc4aea186135ad663d21268beb4c12ffa3a2c810c
tree0ed8726132ef3e37830802e809f318e71de252a8
parent1ec89a223c39af3eb4dbf4aff2698878cb03aa9c
Fix folding with code block and level setting

- Add fenced code blocks tracking to pythonic folding
- Fix fenced code block check with folding
- Fix setext fold level setting grater than 2
- Add tests for g:vim_markdown_folding_level

- The behavior commented in tests would not be a bug.
  Fold level `-1` is returned against atx headers.
  `-1` means that the fold level is undefined, use the fold level
  of a line before or after this line, whichever is the lowest.
  Fold level of setext headers `=` should be 1.
  14 lines of `foldtextresult(45)` is corrent because 15th blank
  line is delimiter line of vader.
after/ftplugin/markdown.vim
test/folding-toc.vader