From fa653ffa1814a43214347ba85d6b8d4265a8fd28 Mon Sep 17 00:00:00 2001 From: Sebastian Andersen <5475129+lambdank@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:29:49 +0100 Subject: [PATCH] Update end_lnum and end_col for clj-kondo --- lua/lint/linters/clj-kondo.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/lint/linters/clj-kondo.lua b/lua/lint/linters/clj-kondo.lua index c0dd43f4..65bb9fff 100644 --- a/lua/lint/linters/clj-kondo.lua +++ b/lua/lint/linters/clj-kondo.lua @@ -24,8 +24,8 @@ return { table.insert(diagnostics, { lnum = finding.row - 1, col = finding.col - 1, - end_lnum = finding.row - 1, - end_col = finding.col - 1, + end_lnum = (finding["end-row"] or finding.row) - 1, + end_col = (finding["end-col"] or finding.col) - 1, severity = assert(severities[finding.level], 'missing mapping for severity ' .. finding.level), message = finding.message, })