mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2024-12-01 09:49:42 +00:00
* when removing comments, want to remove every comment in the range
This commit is contained in:
parent
184f9ac73d
commit
5438fa8dce
@ -962,7 +962,8 @@ class DefaultSegment(object):
|
||||
def clear_comment(self, ranges):
|
||||
self.clear_style_ranges(ranges, comment=True)
|
||||
for start, end in ranges:
|
||||
rawindex = self.get_raw_index(start)
|
||||
for i in range(start, end):
|
||||
rawindex = self.get_raw_index(i)
|
||||
if rawindex in self.rawdata.extra.comments:
|
||||
del self.rawdata.extra.comments[rawindex]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user