From 426de34f970548f798604ad0b0668105457fe1b0 Mon Sep 17 00:00:00 2001 From: Nomarian Date: Thu, 9 Oct 2025 10:48:08 -0400 Subject: typo_iter typo iterator gmatch"%S+" instead of (.-)\n --- spellcheck.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spellcheck.lua') diff --git a/spellcheck.lua b/spellcheck.lua index c0133ae..009aa12 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -114,7 +114,7 @@ end -- Which will return the next typo and its start and finish in the text, starting by 1. local function typo_iter(text, typos, ignored) -- luacheck: ignore ignored local index = 1 - local unfiltered_iterator, iter_state = typos:gmatch('(.-)\n') + local unfiltered_iterator, iter_state = typos:gmatch'%S+' return function() local typo -- cgit v1.2.3