Fix off-by-one error

This commit is contained in:
trorornmn
2016-08-31 15:43:34 +09:00
parent 94ddc3369b
commit 2737d6f2bd

View File

@ -420,7 +420,7 @@ def parse_file(filename, colors, summary):
fixword = fix_case(word, misspellings[lword].data)
if options.interactive and lword not in asked_for:
fix, fixword = ask_for_word_fix(lines[i - 1], word,
fix, fixword = ask_for_word_fix(lines[i], word,
misspellings[lword],
options.interactive)
asked_for.add(lword)