diff --git a/lua/easy_en.lua b/lua/easy_en.lua index 5200722..02422b9 100644 --- a/lua/easy_en.lua +++ b/lua/easy_en.lua @@ -1,15 +1,9 @@ local function append_blank_filter(input) - local cands = {} - for cand in input:iter() do if (not cand.comment:find("☯")) then - table.insert(cands, cand) + yield(Candidate("word", cand.start, cand._end, cand.text .. " ", cand.comment)) end end - - for i, cand in ipairs(cands) do - yield(Candidate("word", cand.start, cand._end, cand.text .. " ", cand.comment)) - end end return { append_blank_filter = append_blank_filter }