Fixed +1 -1 in util.lua (#14913)

No point in adding and then subtracting I believe ;)
This commit is contained in:
jimman2003
2021-06-26 20:43:18 +03:00
committed by GitHub
parent bb4fc69e93
commit bdf3df4027

View File

@@ -1153,7 +1153,7 @@ function M.stylize_markdown(bufnr, contents, opts)
table.insert(highlights, {
ft = match.ft;
start = start + 1;
finish = #stripped + 1 - 1;
finish = #stripped;
})
else
table.insert(stripped, line)