Merge pull request #35 from MysteryMage/new-lines-save-error

fix: Error when saving blank lines and quitting.
This commit is contained in:
Steven Arcangeli 2023-01-13 08:33:56 -08:00 committed by GitHub
commit 4c7331cab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,6 +41,9 @@ M.get_entry_on_line = function(bufnr, lnum)
end
local line = vim.api.nvim_buf_get_lines(bufnr, lnum - 1, lnum, true)[1]
if not line then
return nil
end
local column_defs = columns.get_supported_columns(scheme)
local parsed_entry, entry = parser.parse_line(adapter, line, column_defs)
if parsed_entry then