fix: Error when saving blank lines and quitting.

This commit is contained in:
MysteryMage 2023-01-13 12:19:32 +02:00
parent e5d6b999ba
commit 2bc63f7059

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