Skip to content

left padding of virtual text below is highlighted when wrap is disabled and number enabled #11643

@bfrg

Description

@bfrg

Steps to reproduce

Run vim --clean test.vim -S test.vim, with

vim9script

colorscheme habamax
set number nowrap
prop_type_delete('test')
prop_type_add('test', {highlight: 'ErrorMsg'})
prop_add(2, 0, {
    type: 'test',
    text: 'The quick brown fox jumps over the lazy dog',
    text_align: 'below',
    text_padding_left: 4,
})

Result: The left padding of the virtual text is highlighted when wrap disabled and number enabled.

Screenshot:
screenshot-2022-11-30_215025

Expected behaviour

The left padding of virtual text below should not be highlighted when the virtual text is added below an empty line.

Version of Vim

9.0.978

Environment

Linux

Logs and stack traces

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions