neovim / neovim

Vim-fork focused on extensibility and usability
https://neovim.io
Other
82.84k stars 5.67k forks source link

Nvim visually glitched in windows shell and prompt, when minimize/maximize and scrolling.. repeated rows, etc #14405

Open UmrenTV opened 3 years ago

UmrenTV commented 3 years ago

I am using Windows Terminal (The new stuff from Microsoft Store), and I loved it, because of the tabs, and appearance settings, and all that jazz. However, I ran into some big issues with visual glitches and stuff.

I don't know how to exactly reproduce it, or what it's causing it... but generally when I minimize and restore the terminal, I notice to be most consistent.

I tried changing every setting I can. It seems like the issue persists. If you need some settings I can post some detail stuff, but here is how it looks like:

neovim fooked neovim fooked 2 neovim fooked 3

Sometimes you can scroll above nvim like half the height, and you have repeat of the whole stuff above, sometimes the command line below is getting like 1/3 of the screen, etc. I am new to Vim, I have been using it for about a week, and I am super excited, I don't want this to throw me off :(

Thanks for all the help!

Update: I tried reproducing it in normal CMD prompt, I can't... which means something about the windows terminal is what's making it. I love having tabs (since CMD doesn't support them), for like git on one, npm run blabla on another, and having them on keybinds... to make it smoother, instead of opening 3-4 instances of cmd prompt and alt tabbing around, which is quite innacurate.

jdhao commented 3 years ago

It looks like neovim can not figure out the correct size your terminal after your resizing operation. I have also seen this on cmder. It may have something to do with your terminal. Because of this, I quit using terminal neovim and use nvim-qt instead, which does not have this issue.

Try to reduce your setting bit by bit to see if the issue persists, and creating a minimal conf to reproduce would be helpful.

kidonng commented 3 years ago

I believe this is a regression in recent commits. My previous build 5 days (cd3e742) ago doesn't have this issue.

EDIT: rebuilt with cd3e742 only to find the issue still occurs, so my previous statement could be wrong.

EDIT 2: I found my problem only occurs if certain characters appear in the document (e.g. emoji ↕️). Could possibly be #7151.

UmrenTV commented 3 years ago

I still don't know how to solve it, even with minimum configuration, the terminal is still glitching after minimize/restore. At first, it only repeats the command/status line below, but after using it for a bit and switching windows couple times, it actually duplicates the whole vim if you scroll up, or half.

Sometimes the lines at the very bottom are not drawn correctly and miss-represent what you are actually seeing. In order to see the actual lines, you have to move the cursor down, and it re-draws them showing you the actual lines.

If you think it will help i will try to reproduce it (shouldn't be hard) and maybe make a short video about it, to demonstrate what I mean.

I re-downloaded nvim like 2 days ago, was there a new update maybe that covers this issue?

Cheers and thanks for replying jdhao and kidonng!

P.S. It also have some weird space at the bottom when resizing smaller, and then sizing it back to full screen.

image

The nvim-qt and nvim under regular CMD prompt works perfectly tho. :/

3N4N commented 1 year ago

@UmrenTV I can't reproduce the issue. My system specs are as follows.

Neovim: v0.9.0
Terminal: Windows Terminal v1.18.1241.0
Shell: PowerShell 7
OS: Windows 11 Pro Version 22H2 Build 22621.1702

Would you mind double-checking and reporting back if it's fixed for you?