fix: get selection range from previous visual mode (#689)

This commit is contained in:
yetone
2024-10-08 16:29:18 +08:00
committed by GitHub
parent 08bed9e256
commit 895b0f4143
2 changed files with 16 additions and 6 deletions

View File

@@ -274,6 +274,11 @@ function Selection:create_editing_input()
self.selection = Utils.get_visual_selection_and_range()
if self.selection == nil then
Utils.error("No visual selection found", { once = true, title = "Avante" })
return
end
local start_row
local start_col
local end_row