gu-fan / riv.vim

Notes and Wiki with rst.
513 stars 87 forks source link

RivTitle1-6 causes upwards movement #97

Open ajford opened 9 years ago

ajford commented 9 years ago

When using :RivTitle1 through :RivTitle6 on a section title with more than one blank line before it, the title ends up moving one line upwards. I repeatedly testing in a blank .rst file, and if a give section title had more than one blank line before it, the title would move one line up, and the "decoration" would end up on the line the title was originally on.

vim --version output. Truncated.

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 31 2015 23:35:24)
Included patches: 1-488, 576
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by jamessan@debian.org
Huge version without GUI.  Features included (+) or not (-):

Using vim-nox package on Debian Jesse (Linux horus 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt4-3 (2015-02-03) x86_64 GNU/Linux)

ajford commented 9 years ago

While doing more testing, I came across another odd behavior regarding the :RivTitle command. If a line is immediately preceded by an occupied line (a non-blank line), the title will end up above that line.

gu-fan commented 6 years ago

that's right, got it