aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/diagnostic_objects.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/diagnostic_objects.lua b/lua/diagnostic_objects.lua
index f0fbf97..c914c70 100644
--- a/lua/diagnostic_objects.lua
+++ b/lua/diagnostic_objects.lua
@@ -81,7 +81,7 @@ local function normalize_position(diag)
local elnum = math.max(diag.end_lnum + 1, lnum)
local col = math.max(diag.col, 0)
- local ecol = diag.end_col
+ local ecol = math.max(diag.end_col - 1, 0)
if elnum == lnum then
ecol = math.max(col, ecol)