mirror of
https://github.com/codespell-project/codespell.git
synced 2025-08-06 09:40:56 +08:00
Fix off-by-one error
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user