Fix "Too many matches" exception in some circumstances
regenerate_hints must be called each time hinter runs
This commit is contained in:
parent
cd3241ad42
commit
c186efa73c
|
@ -47,7 +47,7 @@ module Fingers
|
||||||
end
|
end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
regenerate_hints! unless reuse_hints
|
regenerate_hints!
|
||||||
lines[0..-2].each_with_index { |line, index| process_line(line, index, "\n") }
|
lines[0..-2].each_with_index { |line, index| process_line(line, index, "\n") }
|
||||||
process_line(lines[-1], lines.size - 1, "")
|
process_line(lines[-1], lines.size - 1, "")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue