Skip to content

Commit

Permalink
fix: better resizing of texts when window is too small
Browse files Browse the repository at this point in the history
  • Loading branch information
rachartier committed Jul 28, 2024
1 parent 5e45814 commit ae377b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/tiny-inline-diagnostic/chunk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ae377b4

Please sign in to comment.