mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
Fix off-by-one mistake in error reporting for 'icinga2 console'
fixes #8500
This commit is contained in:
parent
aef2513c9e
commit
4e27ded7ce
@ -146,7 +146,7 @@ incomplete:
|
|||||||
if (i == di.LastLine)
|
if (i == di.LastLine)
|
||||||
len = di.LastColumn - di.FirstColumn + 1;
|
len = di.LastColumn - di.FirstColumn + 1;
|
||||||
else
|
else
|
||||||
len = ulines[i].GetLength();
|
len = ulines[i - 1].GetLength();
|
||||||
|
|
||||||
int offset;
|
int offset;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user