mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 13:11:32 +00:00
fix line numbers being off by one for each jump block
This commit is contained in:
parent
4f5443118e
commit
87c0a6e6dc
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ namespace fx
|
||||||
if (level == 0)
|
if (level == 0)
|
||||||
{
|
{
|
||||||
mHead--;
|
mHead--;
|
||||||
|
mLine--;
|
||||||
auto sv = std::string_view{ start, static_cast<std::string_view::size_type>(mHead + 1 - start) };
|
auto sv = std::string_view{ start, static_cast<std::string_view::size_type>(mHead + 1 - start) };
|
||||||
mLastJumpBlock.content = sv;
|
mLastJumpBlock.content = sv;
|
||||||
return sv;
|
return sv;
|
||||||
|
|
Loading…
Reference in a new issue