equalsraf / neovim-qt

Neovim client library and GUI, in Qt5.
https://github.com/equalsraf/neovim-qt/wiki
ISC License
1.85k stars 171 forks source link

GUI doesn't flush completely and lefts some specks with former color #812

Open RnYi opened 3 years ago

RnYi commented 3 years ago

Nvim Version: NVIM v0.5.0-dev+1000-g84d08358b OS: Win10 64-bit Just like pic below, orange specks were left over. I have to move cursor to flush them. 屏幕截图 2021-01-04 163334

jgehrig commented 3 years ago

Can you provide more info?

A GIF screen recording would be very helpful. Alternatively, you can provide a set of steps and `-- -u minimal.vim' configuration.

What did you do to get neovim-qt into this state?

Output for nvim-qt --version?

Do you have Windows display scaling enabled?

This looks like an update() bounds issue to me...

RnYi commented 3 years ago

@jgehrig I use a minimal vimrc and the problem still exists. As you can see from screenshots below, I open a markdown file and vertically split the window, then close one. On the third img, there are some specks and one blue line of dashes, you should zoom up this img otherwise it's a little hard to find them. 屏幕截图 2021-01-05 122830 屏幕截图 2021-01-05 122909 20210105124242

My vimrc:

if has('vim_starting')
  set nocompatible
endif
filetype plugin indent on
syntax on

Output of nvim-qt --version: 屏幕截图 2021-01-05 130648

I think this bug only occurs when window is changed. In fact when I splited the window, specks also appeared, but I didn't capture a screenshot.

chrisniael commented 3 years ago

I also encountered the similar display problem. I am using the gruvbox color scheme and enable italic font.

I found that if I disable the italic font, everything works fine.

image

My init.vim:

call plug#begin(stdpath('data') . '/plugged')
Plug 'morhetz/gruvbox'
call plug#end()

let g:gruvbox_italic = 1 " If disable italic, ererything works fine.
colorscheme gruvbox

Output of nvim-qt --version:

image