Skip to content

Error in decoration provider #176

@serranomorante

Description

@serranomorante

Neovim version (nvim -v | head -n1)

NVIM 0.10... dev

Operating system/version

Arch Linux (latest)

How to reproduce the issue

t-rec_31

cat mini.lua

-- Use Vim packages install the plugin, also work with some plugins manager such as packer.nvim
vim.o.packpath = '~/.local/share/nvim/site'
vim.cmd('packadd promise-async')
vim.cmd('packadd nvim-ufo')

-- Setting
vim.o.foldcolumn = '1'
vim.o.foldlevel = 99
vim.o.foldlevelstart = -1
vim.o.foldenable = true

local ufo = require('ufo')
ufo.setup()
vim.keymap.set('n', 'zR', ufo.openAllFolds)
vim.keymap.set('n', 'zM', ufo.closeAllFolds)

nvim --clean +'so mini.lua'

  1. Execute zM
  2. Execute vsplit
  3. Error
    ...

Btw, didn't found the ~/.cache/nvim/ufo.log

Expected behavior

vsplit shouldn't cause an error

Actual behavior

vsplit causes an error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions