From 223fa7664783909c147646fcd82d1a18392ac607 Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Wed, 19 Mar 2025 17:32:36 +0200 Subject: [PATCH] refactor(struct_tags): error on out-of-bounds --- lua/gopher/struct_tags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gopher/struct_tags.lua b/lua/gopher/struct_tags.lua index 0e00319..510a43c 100644 --- a/lua/gopher/struct_tags.lua +++ b/lua/gopher/struct_tags.lua @@ -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"