Changeset 0e7781407c14…
Parent e248b972dd37…
by
Changes to one file · Browse files at 0e7781407c14 Showing diff from parent e248b972dd37 Diff from another changeset...
@@ -172,9 +172,6 @@ try:
status, file, txt = iterator.next()
except StopIteration:
- # TODO: apply more efficiently
- sob, eob = buf.get_bounds()
- buf.apply_tag_by_name("mono", sob, eob)
return False
lines = unicode(txt, 'latin-1', 'replace').splitlines()
@@ -197,6 +194,8 @@ mark = 'mark_%d' % offset
buf.create_mark(mark, pos)
filelist.append((status, file, mark, True, stats))
+ sob, eob = buf.get_bounds()
+ buf.apply_tag_by_name("mono", pos, eob)
return True
# Hacked up version of mercurial.patch.diff()
|
Loading...