macvim icon indicating copy to clipboard operation
macvim copied to clipboard

Black square between tabline and scrollbar

Open adinklotz opened this issue 3 years ago • 3 comments

Steps to reproduce

  1. Run a config-less MacVim: mvim -g --clean
  2. Set a non-black color scheme that lets us see what's happening: :colorscheme slate
  3. Disable the GUI tabline - this only applies to the text tabline: :set guioptions-=e
  4. Create a new tab so the tabline shows: :tabnew
Screen Shot 2022-09-21 at 9 58 47 PM

Note the black space that appears at the top-right corner

Expected behaviour

Any of the following:

  1. The tabline extends all the way to the right edge
  2. The scroll bar extends all the way up to the title bar
  3. That gap is left empty but matches the colorscheme background color (what Windows gvim does)

Version of Vim and architecture

Vim 9.0, macOS version arm64, Included patches 1-472

Environment

Operating system: macOS Monterey version 12.6 (21G115) Terminal: iTerm2 (doesn't really apply, I've only seen issue in macvim GUI) $TERM: xterm-256color Shell: zsh 5.8.1

How MacVim was installed

Homebrew cask

Logs and stack traces

No response

Vim configuration where issue is reproducable

Reproducable on almost-clean vim config (with a couple commands as described)

Issue has been tested with given configuration

  • [X] by running MacVim.app from GUI macOS interface
  • [X] by running vim/gvim/etc installed by MacVim
  • [ ] by running other versions of vim (e.g. /usr/bin/vim)

Issue has been tested with no configuration

  • [X] by running mvim --clean (or gvim, supplied by MacVim distribution)
  • ~~[ ] by running vim --clean (in terminal, supplied by MacVim distribution)~~
  • ~~[ ] by running vim --clean (in terminal, other suppliers, e.g. /usr/bin/vim)~~ N/A - only applies if GUI scrollbar visible

Other conditions

  • [ ] The both Homebrew packages "vim" and "macvim" are installed Macvim cask is installed, macvim and vim formulae are not

adinklotz avatar Sep 22 '22 02:09 adinklotz

Thank you for an issue.

I took it as a natural tread-off for a pixel-by-pixel resisability (as the opposite to character-by character)

In MacVim I personally don't use tabline (and Vim tabs in general) as I prefer macOS-style ones if I use tabs.

As far as I see what's happening, it matches normal background style, so I'd propose to match this square to tabline background style rather than general one.

eirnym avatar Sep 22 '22 10:09 eirnym

Yeah I don't really use Vim tabs in MacVim, or in general, but I really like the way vim-airline hijacks the tabline to show buffers, which does require using the Vim text tabline.

For reference, here's how the native text tabline looks in Windows's Gvim: Screenshot 2022-09-22 100145 (of course pretty ugly in that default color scheme, but a better way to handle it than the black square IMO)

Obviously this is a very minor issue, it just disproportionately bugs me to have MacVim messing up the look of my artisanally crafted vimrc haha

adinklotz avatar Sep 22 '22 14:09 adinklotz

This is a bug. I'll try to fix it next release. Incidentally there is a new overlay scroll bar feature coming "soon" which would hopefully mean you don't have to use the old school scroll bars anymore.

And there is also a pull request to revamp of the MacVim tabs that I need to merge but I imagine that won't apply to you if you are going to turn GUI tabs off anyway.

ychin avatar Sep 23 '22 03:09 ychin