NyaoVim icon indicating copy to clipboard operation
NyaoVim copied to clipboard

Strange behaviour on :split

Open AitorATuin opened this issue 9 years ago • 7 comments

When i split the window using either :vsplit or :split and after that i try O the buffer gets completely messed up, it works when doing o instead.

AitorATuin avatar Feb 20 '16 21:02 AitorATuin

I can't reproduce this.

tmp

Could you describe the accurate sequence to reproduce? Screenshot of the broken buffer is also helpful.

rhysd avatar Feb 23 '16 16:02 rhysd

Sending a small screencast.

new2

As you can see the problem is when doing O after doing :vsplit

AitorATuin avatar Feb 24 '16 21:02 AitorATuin

I could not still reproduce this.

tmp

Could you tell me accurate input sequence for your screenshot?

If possible, please try it without your neovim configuration.

$ nyaovim -u NONE -U NONE

rhysd avatar Feb 27 '16 15:02 rhysd

And could you tell me the version of Neovim? I'm using 0.1.2.

rhysd avatar Feb 27 '16 16:02 rhysd

I could reproduce this issue only in my Linux environment (Ubuntu 14.04).

2016-02-28 3 24 54

rhysd avatar Feb 27 '16 18:02 rhysd

Yes, i'm using linux here.

neovim:

NVIM v0.1.3-61-gf03ab69
Build type: Debug

I am running it from the git repository and the bug happens also if avoid the nvim config at all.

AitorATuin avatar Mar 01 '16 08:03 AitorATuin

I investigated this. As the result, Neovim's scroll region seems to be wrong. Let me describe.

This is a screenshot while investigation.

tmp

And the event log while above is:

2016-03-10 3 33 40

I tried O under the text aaaaa after vertical split. The red region is a scrolled area. There was two scrolling events.

At first, only current buffer was scrolled. This was correct because O only scrolls current buffer.

At second, entire window was scrolled. This was incorrect, I think. And no drawing event for window separater was sent and cursor position didn't match after the wrong scrolling.

As described above, OS X didn't reproduce this. I watched the log in OS X and confirmed that the wrong second scrolling was not sent in OS X as below.

2016-03-10 3 42 27

rhysd avatar Mar 09 '16 18:03 rhysd