From 90cbc76c97e7be7344d2e71ef76e221ba4108387 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 29 Mar 2020 20:22:27 -0400 Subject: Forgot a 0-to-1 conversion in r8093. --- lexers/LexLPeg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers') diff --git a/lexers/LexLPeg.cxx b/lexers/LexLPeg.cxx index c73c2d3db..a34b10fda 100644 --- a/lexers/LexLPeg.cxx +++ b/lexers/LexLPeg.cxx @@ -678,7 +678,7 @@ public: lua_pushcfunction(L, lua_error_handler), lua_insert(L, -2); lua_pushvalue(L, -3); lua_pushlstring(L, buffer->BufferPointer() + startPos, lengthDoc); - lua_pushinteger(L, styler.StyleAt(startPos)); + lua_pushinteger(L, styler.StyleAt(startPos) + 1); if (lua_pcall(L, 3, 1, -5) != LUA_OK) return LogError(L); if (!lua_istable(L, -1)) return LogError(L, "Table of tokens expected from 'lexer.lex'"); -- cgit v1.2.3