neovim / neovim

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

Colorcolumn is not displayed above modified background #28118

Open sergei-grechanik opened 6 months ago

sergei-grechanik commented 6 months ago

Problem

When running neovim in diff mode, the color column is not displayed above the background indicating changes: with termguicolors: image with the vim color scheme: image

Steps to reproduce

nvim --clean -d foo bar Then run :set textwidth=20 | set colorcolumn=+1 | set termguicolors or set textwidth=20 | set colorcolumn=+1 | colorscheme vim

Expected behavior

vimdiff: image

Neovim version (nvim -v)

NVIM v0.10.0-dev-2754+g12240600f

Vim (not Nvim) behaves the same?

no, VIM - Vi IMproved 9.0 Included patches: 1-841

Operating system/version

Ubuntu 20.04

Terminal name/version

st with tmux. Same behavour in xterm

$TERM environment variable

screen-256color

Installation

built from repo

zeertzjq commented 6 months ago

Apply to CursorColumn with QuickFixLine as well. Related #22404

sergei-grechanik commented 6 months ago

Also it affects signs with texthl (e.g. GitGutter with GitGutterLineHighlightsEnable). I wonder what was the original reason to deviate from vim's behavior.