From 2b2270b674b1f6d9785d3a83df91d15fc049c21f Mon Sep 17 00:00:00 2001 From: Joscha Date: Sun, 12 May 2019 08:56:18 +0000 Subject: [PATCH] Fix adding initial tree I just forgot to add it to the deque... Heh --- cheuph/tree_list.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cheuph/tree_list.py b/cheuph/tree_list.py index 0c501cb..e7fcee3 100644 --- a/cheuph/tree_list.py +++ b/cheuph/tree_list.py @@ -96,6 +96,8 @@ class TreeList: # below that. self._lower_offset = offset - 1 + self._deque.extend(tree) + def add_above(self, tree: List[RenderedElement]) -> None: """ Add a rendered tree above all current trees.