From 8f1708ee3c9a6b886208db275da4a02c41fb2cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20CHARTIER?= Date: Sat, 13 Jul 2024 02:22:22 +0200 Subject: [PATCH] fix: fix misalignment --- lua/tiny-inline-diagnostic/diagnostic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/tiny-inline-diagnostic/diagnostic.lua b/lua/tiny-inline-diagnostic/diagnostic.lua index fa186ab..68511e7 100644 --- a/lua/tiny-inline-diagnostic/diagnostic.lua +++ b/lua/tiny-inline-diagnostic/diagnostic.lua @@ -117,7 +117,7 @@ local function get_body_from_chunk( } if not need_to_be_under then - table.insert(chunk_virtual_texts, 1, { string.rep(" ", #opts.signs.arrow), diag_inv_hi }) + table.insert(chunk_virtual_texts, 1, { string.rep(" ", #opts.signs.arrow - 1), diag_inv_hi }) else table.insert(chunk_virtual_texts, 1, { " ", diag_inv_hi }) end