aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/featherweight.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/featherweight.py b/src/featherweight.py
index b8bb376..ebab4e6 100755
--- a/src/featherweight.py
+++ b/src/featherweight.py
@@ -189,7 +189,10 @@ try:
else:
cur = select_stack[-1][0]
curi = select_stack[-1][1]
- if ('inner' in cur) and is_expanded(cur):
+ if 'inner' in cur:
+ if not is_expanded(cur):
+ cur['expanded'] = True
+ collapsed_count -= 1
select_stack.append((cur['inner'][0], 0))
print_tree()
elif buf.endswith('\033[D'):