mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
stores: Properly handle deletion in the LineCache, delete all types of rows
This commit is contained in:
parent
d2252e238b
commit
3e7275752e
1 changed files with 5 additions and 0 deletions
|
@ -149,6 +149,11 @@ class ViewportStore(LineNumberedKeyedStoreMixin, NoNoneStore):
|
|||
|
||||
class LineStore(NoNoneStore):
|
||||
|
||||
def __delitem__(self, number):
|
||||
for cls, i in self.store.keys():
|
||||
if i == number:
|
||||
del self.store[(cls, i)]
|
||||
|
||||
def get_method(self, key):
|
||||
cls, line = key
|
||||
return cls.parse_line(line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue