From 18cb213d9f9da76ac58dae67fc428220889e370e Mon Sep 17 00:00:00 2001 From: chenxu <6235641+cxwx@users.noreply.github.com> Date: Mon, 16 Mar 2026 12:24:32 +0800 Subject: [PATCH] fix(lua): search.lua autoload failed after lua 5.5 (#1503) Removed unnecessary increment of 'i' in the loop. --- lua/search.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/lua/search.lua b/lua/search.lua index 52d5951..d8515d9 100755 --- a/lua/search.lua +++ b/lua/search.lua @@ -21,7 +21,6 @@ local function get_pos( text, char ) local first_char = tmp:sub( 1, utf8.offset( tmp, 2 ) - 1 ) if first_char == char then pos[i] = true end tmp = tmp:gsub( '^' .. first_char, '' ) - i = i + 1 end end return pos