by
Changes to one file · Browse files at df6f8ccaac9f Showing diff from parent c4691fba95aa 59bb6f267b33 Diff from another changeset...
@@ -639,7 +639,8 @@ def displayFile(self, filename, status):
self.clearDisplay()
if filename == self._lastfile:
- reenable = [c.fromline for c in self.curchunks[1:] if c.selected]
+ reenable = [(c.fromline, len(c.before)) for c in self.curchunks[1:]\
+ if c.selected]
else:
reenable = []
self._lastfile = filename
@@ -690,6 +691,6 @@ self.countselected = 0
self.curchunks = chunks
for c in chunks[1:]:
- if c.fromline in reenable:
+ if (c.fromline, len(c.before)) in reenable:
self.toggleChunk(c)
self.updateSummary()
|
Loading...