Skip to content

highlighter.lua:446: Invalid 'end_col': out of range #1731

@iternewo

Description

@iternewo

Before Reporting an Issue

  • I have read the kickstart.nvim README.md.

  • I have read the appropriate plugin's documentation.

  • I have searched that this issue has not been reported before.

  • By checking this, I confirm that the above steps are completed. I understand leaving this unchecked will result in this report being closed immediately.

Describe the bug

When dd`ing closer to the end of a document, the following message in red appears.

Lua: /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:446: Invalid 'end_col': out of range                                                                         
stack traceback:                                                                                                                                                             
        [C]: in function 'nvim_buf_set_extmark'                                                                                                                              
        /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:446: in function 'fn'                                                                                     
        /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:247: in function 'for_each_highlight_state'                                                               
        /usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:365: in function </usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua:338>

To Reproduce

  1. go to the end of a text document.
  2. press
  3. see the above message in red

Desktop

  • OS: Linux xfce
  • Terminal: xfce terminal

Neovim Version

NVIM v0.12.0-dev                                                                                                                                                             
Build type: RelWithDebInfo                                                                                                                                                   
LuaJIT 2.1.1703358377 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions