macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.47k stars 680 forks source link

hlsearch+colors+syntax highlighting bug #1291

Closed AbePralle closed 1 year ago

AbePralle commented 1 year ago

Steps to reproduce

  1. Create .vimrc containing only these lines:
    set hlsearch
    colors darkblue "or any colorscheme
    syntax on       "or 'syntax enable'
  2. Edit any file (mvim filename), create a duplicate line or two, then search for a duplicate word.
  3. All matches will be highlighted except the match at the current cursor position (press n or * to cycle through and observe).

Expected behaviour

All search matches should be highlighted, including the one under the cursor.

Version of Vim and architecture

9.0.0065, GUI, arm64

Environment

Monterey 12.5 for M2 Apple Terminal xterm-256color zsh 5.8.1 (x86_64-apple-darwin21.0)

How MacVim was installed

Homebrew

Logs and stack traces

No response

Vim configuration where issue is reproducable

https://gist.github.com/AbePralle/4083bbac7866782876250133ce831eb3

Issue has been tested with given configuration

Issue has been tested with no configuration

Other conditions

ychin commented 1 year ago

I think this is a Vim bug, and from what I can see it was fixed in release 174 (9.0.472). Can you update MacVim and try again?

AbePralle commented 1 year ago

Yes, that fixes it. Thank you!