On Mo, 17 Nov 2014, Nazri Ramliy wrote:
> Steps to reproduce (in a 120 columns by 84 rows terminal):
>
> $ echo $COLUMNS $LINES
> 74 120
> $ {
> for i in `seq 1 8`; do printf 'lorem ipsum '; done
> echo
> for i in `seq 1 4`; do
> for i in `seq 1 60`; do printf ' '; done
> for i in `seq 1 8`; do printf 'lorem ipsum '; done
> echo
> done
> for i in `seq 1 2`; do
> printf ' lorem ipsum'
> echo
> done
> } | vi -u NONE -c 'set rnu linebreak' -
>
> Now visual-block select the last two lines and start insert mode as if
> you want to insert common text at the beginning of the two lines:
>
> Gk<c-v>j
>
> Note the relative line numbers, and hit "I"
>
> Bug 1: Notice that the relative numbers above the current cursor is no
> longer correct.
Attached patch should fix it.
>
> Bug 2: Now type one character in that insert mode and notice that the
> lines above the cursor is redrawn as if "set nolinebreak" was set. As
> soon as you hit escape the lines above the cursor is redrawn again
> with the proper effect of "set linebreak".
Patch from
https://groups.google.com/d/msg/vim_dev/kv5kg0fZxRQ/1grx0E-XlIUJ
should fix this one.
Best,
Christian
--
Wie man aus Gewohnheit nach einer abgelaufenen Uhr hinsieht, als
wenn sie noch ginge, so blickt man auch wohl einer Schönen ins
Gesicht, als wenn sie noch liebte.
-- Goethe, Maximen und Reflektionen, Nr. 383