Fix "Too many matches" exception in some circumstances

regenerate_hints must be called each time hinter runs
This commit is contained in:
Jorge Morante 2024-01-31 12:41:47 +01:00
parent cd3241ad42
commit c186efa73c
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ module Fingers
end
def run
regenerate_hints! unless reuse_hints
regenerate_hints!
lines[0..-2].each_with_index { |line, index| process_line(line, index, "\n") }
process_line(lines[-1], lines.size - 1, "")