fix: Error when saving blank lines and quitting.
This commit is contained in:
parent
e5d6b999ba
commit
2bc63f7059
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue