Skip to content

Commit

Permalink
fix: ValueError on yank-paste (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Mar 10, 2024
1 parent ddc5b58 commit fff1c9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dooit/ui/widgets/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ async def paste(self) -> Result:
model.from_data(self.clipboard.data, False)
widget = self.WidgetType(model)
await self.mount(widget, after=self.current)

self._rebuild_cache = True
self.current = widget
return Ok()

Expand Down

0 comments on commit fff1c9e

Please sign in to comment.