Skip to content

Commit

Permalink
Use similar colors when using stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas De Marchi committed Jan 29, 2011
1 parent acba842 commit cc01ea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codespell.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def parse_file(filename, colors):
for line in f:
for word in re.findall('\w+', line):
if word in misspellings:
cfilename = "%s%s" % (colors.FILE, filename)
cline = "%d%s" % (i, colors.DISABLE)
cfilename = "%s%s%s" % (colors.FILE, filename, colors.DISABLE)
cline = "%s%d%s" % (colors.FILE, i, colors.DISABLE)
cwrongword = "%s%s%s" % (colors.WWORD, word, colors.DISABLE)
crightword = "%s%s%s" % (colors.FWORD,
misspellings[word].data,
Expand Down

0 comments on commit cc01ea5

Please sign in to comment.