mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Fix the source line having the entire file
This commit is contained in:
parent
6ff92f0a7e
commit
32c3964474
1 changed files with 3 additions and 1 deletions
|
@ -89,7 +89,9 @@ bool AbstractScript::GetSourceAt(size_t sourcePos, str *sourceLine, int& column,
|
|||
if (*p == '\n') {
|
||||
line++;
|
||||
column = 0;
|
||||
posLine = i + 1;
|
||||
if (i + 1 != sourcePos) {
|
||||
posLine = i + 1;
|
||||
}
|
||||
} else if (*p == '\0') {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue