mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
fix #68 yaml-bare tag lists without comma
This commit is contained in:
@@ -60,7 +60,7 @@ local function yaml_to_tags(line, entry, ret)
|
||||
|
||||
local i = 1
|
||||
local j
|
||||
local prev_i
|
||||
local prev_i = 1
|
||||
local tag
|
||||
while true do
|
||||
i, j = line:find("%s*.*%s*,", i)
|
||||
@@ -73,6 +73,9 @@ local function yaml_to_tags(line, entry, ret)
|
||||
end
|
||||
|
||||
local new_entry = {}
|
||||
|
||||
-- strip trailing ]
|
||||
tag = tag:gsub("]", "")
|
||||
new_entry.t = tag
|
||||
new_entry.l = entry.l
|
||||
new_entry.fn = entry.fn
|
||||
|
||||
Reference in New Issue
Block a user