From 7d4af75189b72f9639a82e5feba6d84655d4a8a5 Mon Sep 17 00:00:00 2001 From: Johannes Schmidt Date: Thu, 26 Feb 2026 09:26:21 +0100 Subject: [PATCH] Make ShowCodeLocation() show the full line with a LastColumn of 0 --- lib/base/debuginfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/base/debuginfo.cpp b/lib/base/debuginfo.cpp index ef5278fee..2eb742f1b 100644 --- a/lib/base/debuginfo.cpp +++ b/lib/base/debuginfo.cpp @@ -80,8 +80,9 @@ void icinga::ShowCodeLocation(std::ostream& out, const DebugInfo& di, bool verbo if (lineno == di.FirstLine) start = di.FirstColumn - 1; - if (lineno == di.LastLine) + if (lineno == di.LastLine && di.LastColumn > 0) { end = di.LastColumn; + } if (start < 0) { end -= start;