From ae377b4ab21197cd7bbd6b4d939f2178b467e736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20CHARTIER?= Date: Sun, 28 Jul 2024 02:12:48 +0200 Subject: [PATCH] fix: better resizing of texts when window is too small --- lua/tiny-inline-diagnostic/chunk.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/tiny-inline-diagnostic/chunk.lua b/lua/tiny-inline-diagnostic/chunk.lua index 169d792..058d393 100644 --- a/lua/tiny-inline-diagnostic/chunk.lua +++ b/lua/tiny-inline-diagnostic/chunk.lua @@ -200,7 +200,8 @@ function M.get_chunks(opts, diag, plugin_offset, curline, buf) if need_to_be_under then offset = 0 else - offset = line_length + local win_col = vim.fn.virtcol("$") + offset = win_col end chunks = M.get_message_chunks_for_overflow(