Skip to content

Commit 220cba7

Browse files
committed
Revert "fix: padding for multibyte chars when chunks > 1"
This reverts commit 15becb1.
1 parent 842983e commit 220cba7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lua/tiny-inline-diagnostic/virtual_text.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,7 @@ function M.from_diagnostic(opts, ret, index_diag, padding, total_chunks)
7979

8080
-- Process each chunk
8181
for index_chunk, chunk in ipairs(ret.chunks) do
82-
local message = utils.trim(chunk)
83-
if #ret.chunks > 1 then
84-
message = format_chunk_message(chunk, padding)
85-
end
82+
local message = format_chunk_message(chunk, padding)
8683

8784
if index_chunk == 1 then
8885
local first_chunks = build_first_chunk(

0 commit comments

Comments
 (0)