Skip to content

Commit

Permalink
Fix off by one error
Browse files Browse the repository at this point in the history
  • Loading branch information
TnS-hun committed Dec 28, 2024
1 parent 734eb01 commit 537b35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2125,7 +2125,7 @@ class XText {
}

lua_pushinteger(m_L, wstart + 1); // Lua indices start at 1
lua_pushinteger(m_L, wend + 1);
lua_pushinteger(m_L, wend);
free(breaks);
}
};
Expand Down

0 comments on commit 537b35d

Please sign in to comment.