fix: line parsing for empty columns

This commit is contained in:
Steven Arcangeli 2023-11-05 07:57:54 -08:00
parent 57db10d748
commit 0715f1b0aa
2 changed files with 4 additions and 3 deletions

View file

@ -150,8 +150,9 @@ end
M.parse_col = function(adapter, line, col_def)
local name, conf = util.split_config(col_def)
-- If rendering failed, there will just be a "-"
if vim.startswith(line, "- ") then
return nil, line:sub(3)
local empty_col, rem = line:match("^(-%s+)(.*)$")
if empty_col then
return nil, rem
end
local column = M.get_column(adapter, name)
if column then