Christian Brabandt wrote:
> Hi Nazri!
>
> On Di, 05 Feb 2013, Nazri Ramliy wrote:
>
> > While working on this I noticed another bug, found in vanilla vim
> > changeset: 4089:30b3b1da0350:
> >
> > $ src/vim -u NONE -U NONE src/misc1.c -c 'set nu|for i in
> > range(5)|split|endfor'
> > :" Now we should have 6 windows for src/misc1.c, go to the bottom window
> > :5wincmd j
> > :" Go to the last line in the window
> > :normal L
> > :windo set nu?
> > number
> > number
> > 10808 }
> > number
> > number
> > number
> > Press ENTER or type command to continue
> >
> > And notice that one or two of the output of "windo set nu?" includes
> > some text from the buffer.
>
> Also, the numbering is wrong after :windo executes and it this is really
> strange, I noticed the cursor is displayed wrong in the last window and
> even a :redraw! does not correct it. For me it is displayed in the 2nd
> line, while :line('.') outputs :1
>
> This patch fixes it:
[...]
> I don't know, why Vim needs to redraw the cursor-line when executing the
> windo command and I think it will redraw afterwards anyways, so it
> should be safe to remove those lines.
The updating is needed, depending on 'concealcursor'.
But at least we can skip it when 'conceallevel' is zero.
It would still be wrong when conceal is on, thus more changes are
required. I think we should check if the screen is scrolled.
I'll make a patch, please try to find situations where it might still be
wrong.
--
Veni, Vidi, VW -- I came, I saw, I drove around in a little car.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.