From b4d4a5255ecfa1bd7d5c91904c5ff0ea24ee3e6b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 26 Jul 2013 11:42:14 +0200 Subject: autoexpand MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/featherweight.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/featherweight.py') 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'): -- cgit v1.2.3-70-g09d2