riv.vim icon indicating copy to clipboard operation
riv.vim copied to clipboard

RivTitle1-6 causes upwards movement

Open ajford opened this issue 11 years ago • 2 comments

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 [email protected]
Compiled by [email protected]
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 avatar Apr 20 '15 18:04 ajford

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.

ajford avatar Apr 20 '15 18:04 ajford

that's right, got it

gu-fan avatar Jan 19 '18 14:01 gu-fan