diff --git a/runtime/pack/dist/opt/nvim.undotree/lua/undotree.lua b/runtime/pack/dist/opt/nvim.undotree/lua/undotree.lua index 14875fa464..72734cbf2c 100644 --- a/runtime/pack/dist/opt/nvim.undotree/lua/undotree.lua +++ b/runtime/pack/dist/opt/nvim.undotree/lua/undotree.lua @@ -348,6 +348,8 @@ function M.open(opts) title = string.format('Undo tree for %s', vim.fn.fnamemodify(bufname, ':.')) elseif type(opts_title) == 'function' then title = opts_title(buf) + elseif type(opts_title) == 'string' then + title = opts_title end assert(type(title) == 'string', 'Window title must be a string')