Wednesday, December 11, 2013

Re: weird bug with relativenumber

Hi Matteo!

On Mi, 11 Dez 2013, Matteo Cavalleri wrote:

> I'm using vim with two vertical splits and relativenumber active. I've noticed that when I switch from a split to the other, the line numbers in the inactive split sometimes changes. I've seen this happening on closed folds, i.e. the numbers of the folded lines are hidden as well. it's a bit strange to see the line numbers displayed differently when the fold is active or inactive, but it might make sense... however I see this behaviour happen sometimes also on unfolded lines, and that's obviously a bug*:
>
> http://it.tinypic.com/view.php?pic=2hex34p&s=5
> http://it.tinypic.com/view.php?pic=2cxjg3b&s=5
>
> I've tried to replicate the problem with "vim -u NONE -U NONE", setting just nocompatible, number and relativenumber and the problem didn't show. I then tried with "vim --noplugin" and the problem still didn't show, so i suppose the bug is caused by some plugin, but i've no idea which...
>
> what's even weirder is that if i quit vim with the error showing up, and then start it again with "vim --noplugin", I see the wrong line numbers as they were shown earlier. As soon as i move the cursor to another line, the error is gone and doesn't reappear...
>
> I've tried once with all my plugins except vim-signify, once with all but vim-fugitive and once with all but vim-coffee-script, but the bug still appeared.
>
> Is there some way to guess what the cause may be? trying all the possible permutations in my plugin list may be just a bit too long and boring...
>
> *(yes that code is ugly, it's just a quick unit test for a nodejs orm :P )

Any reliable way to reproduce it? Perhaps with a session file?
Does :redraw! fix it?

Best,
Christian
--
Die Ehe ist eine mehr oder weniger erfolgreich durchführbare
Absurdität.
-- Ephraim Kishon (alias Ferenc Hoffmann)

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment