mirror of
https://github.com/Myzel394/easytables.nvim.git
synced 2025-06-18 06:55:25 +02:00
fix: Properly handle out of table import try
This commit is contained in:
parent
4337faf33f
commit
9a8c489cce
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user