Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrollbar appears to have a "gap" in it that changes appearance with movement #3

Open
khughitt opened this issue Mar 5, 2020 · 4 comments

Comments

@khughitt
Copy link

khughitt commented Mar 5, 2020

The scrollbar appears "split", with a small gap in it that changed in size and position as I scroll through a document, e.g.:

vim-scroll-barnacle-issue-3_2020-03-05 14-13

Incidentally, the above video also demonstrates the mousewheel issue reported in issue #1 .

System info:

  • Arch Linux 5.5.7 64-bit
  • termite v15
  • vim-scroll-barnacle (commit b27f2d5)

Neovim version:

NVIM v0.5.0-296-gfa9b057d3
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/keith/.cache/yay/neovim-git/src/neovim-git/build/config -I/home/keith/.cache/yay/neovim-git/src/neovim-git/src -I/usr/include -I/home/keith/.cache/yay/neovim-git/src/neovim-git/build/src/nvim/auto -I/home/keith/.cache/yay/neovim-git/src/neovim-git/build/include
Compiled by keith@titan

Features: +acl +iconv +tui
@sslivkoff
Copy link
Owner

sslivkoff commented Mar 6, 2020

This is caused by the ScrollBlockBottom highlight group failing to reverse the color for the bottom block

Unicode only provides fine-grained characters for the bottom of a block (▁▂▃▄▅▆▇█) not the top. To use these at the bottom of a fine-grained scrollbar, their fg/bg need to be reversed. This is accomplished with highlight ScrollBlockBottom gui=reverse

I've been using v0.5.0-200-gee1199eab which is older than your build. It also works for me in the latest v0.5.0-404-g49cd750d6.

Maybe there is an interaction with one of your other plugins. Can you try disabling them to see?

@khughitt
Copy link
Author

Hi @sslivkoff ,

Apologies for the slow response. I finally got around to checking on a clean nvim config with the latest nightly build of neovim, and I still get the same artifacts..

init.vim:

call plug#begin()
    Plug 'sslivkoff/vim-scroll-barnacle'
call plug#end()
 
highlight link Scrollbar Float

version:

NVIM v0.5.0-421-ga8f784192
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/keith/.cache/yay/neovim-git/src/neovim-git/build/config -I/home/keith/.cache/yay/neovim-git/src/neovim-git/src -I/usr/include -I/home/keith/.cache/yay/neovim-git/src/neovim-git/build/src/nvim/auto -I/home/keith/.cache/yay/neovim-git/src/neovim-git/build/include
Compiled by keith@titan

Features: +acl +iconv +tui
See ":help feature-compile"

I tried a couple different terminals, just to be sure it wasn't specific to Termite, but the same issue occurs with kitty and xterm as well.

Just let me know if there is anything else you would like me to check.

@you-n-g
Copy link

you-n-g commented Sep 20, 2020

Your scrollbar plugin is great.
I've got the same issue.
It will be great if such issue could be fixed.

@you-n-g
Copy link

you-n-g commented Sep 20, 2020

At last, I fixed this issue by adding highlight ScrollBlockBottom gui=reverse cterm=reverse into my init.vim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants