fix: Properly handle out of table import try

This commit is contained in:
Myzel394 2023-10-08 18:59:33 +02:00
parent 4337faf33f
commit 9a8c489cce
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -19,6 +19,10 @@ end
local function find_row_start(buffer)
local position = vim.api.nvim_win_get_cursor(0)
if find_col_start(buffer, position[1]) == nil then
return nil
end
local current_line = position[1] - 1
while true do
if find_col_start(buffer, current_line) == nil then