mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
Make ShowCodeLocation() show the full line with a LastColumn of 0
This commit is contained in:
parent
50b4bc5dce
commit
7d4af75189
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue