Skip to content

Fix: remove hl-ComplMatchIns usage during "preinsert"#18254

Closed
girishji wants to merge 2 commits intovim:masterfrom
girishji:hlpreinsert
Closed

Fix: remove hl-ComplMatchIns usage during "preinsert"#18254
girishji wants to merge 2 commits intovim:masterfrom
girishji:hlpreinsert

Conversation

@girishji
Copy link
Contributor

@girishji girishji commented Sep 9, 2025

When "preinsert" is included in 'completeopt', only the hl-PreInsert highlight group should be applied. Previously, hl-ComplMatchIns was used when autocompletion was not enabled.

Related to #18213.

When `"preinsert"` is included in `'completeopt'`, only the `hl-PreInsert`
highlight group should be applied, whether autocompletion is active or not.
Previously, `hl-ComplMatchIns` was used when autocompletion was not enabled.

Related to vim#18213.
@Shane-XB-Qian

This comment was marked as off-topic.

@chrisbra chrisbra closed this in 2525c56 Sep 10, 2025
@chrisbra
Copy link
Member

thanks

@girishji
Copy link
Contributor Author

Thanks.

@girishji girishji deleted the hlpreinsert branch September 10, 2025 13:43
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Sep 10, 2025
…plMatchIns

Problem:  completion: preinserted text highlighed using ComplMatchIns
Solution: Use highlighting group PreInsert and update the documentation
          (Girish Palya).

When "preinsert" is included in 'completeopt', only the PreInsert
highlight group should be applied, whether autocompletion is active or not.
Previously, ComplMatchIns was used when autocompletion was not enabled.

Related to vim/vim#18213.

closes: vim/vim#18254

vim/vim@2525c56

Co-authored-by: Girish Palya <girishji@gmail.com>
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Sep 10, 2025
…plMatchIns

Problem:  completion: preinserted text highlighed using ComplMatchIns
Solution: Use highlighting group PreInsert and update the documentation
          (Girish Palya).

When "preinsert" is included in 'completeopt', only the PreInsert
highlight group should be applied, whether autocompletion is active or not.
Previously, ComplMatchIns was used when autocompletion was not enabled.

Related to vim/vim#18213.

closes: vim/vim#18254

vim/vim@2525c56

Co-authored-by: Girish Palya <girishji@gmail.com>
dundargoc pushed a commit to dundargoc/neovim that referenced this pull request Sep 27, 2025
…plMatchIns

Problem:  completion: preinserted text highlighed using ComplMatchIns
Solution: Use highlighting group PreInsert and update the documentation
          (Girish Palya).

When "preinsert" is included in 'completeopt', only the PreInsert
highlight group should be applied, whether autocompletion is active or not.
Previously, ComplMatchIns was used when autocompletion was not enabled.

Related to vim/vim#18213.

closes: vim/vim#18254

vim/vim@2525c56

Co-authored-by: Girish Palya <girishji@gmail.com>
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

Successfully merging this pull request may close these issues.

3 participants