refactor(struct_tags): error on out-of-bounds

This commit is contained in:
Oleksandr Smirnov 2025-03-19 17:32:36 +02:00
parent 4406b25c0f
commit 223fa76647
No known key found for this signature in database

View file

@ -70,7 +70,7 @@ local function handle_tags(fpath, bufnr, user_args)
bufnr,
res["start"] - 1,
res["start"] - 1 + #res["lines"],
false,
true,
res["lines"]
)
vim.cmd "write"