diff options
| author | Mattias Andrée <maandree@operamail.com> | 2013-07-26 11:42:14 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2013-07-26 11:42:14 +0200 |
| commit | b4d4a5255ecfa1bd7d5c91904c5ff0ea24ee3e6b (patch) | |
| tree | ed1419263775a0fd19f21989d537006d8d1fa21b /src/featherweight.py | |
| parent | derp (diff) | |
| download | pytagomacs-b4d4a5255ecfa1bd7d5c91904c5ff0ea24ee3e6b.tar.gz pytagomacs-b4d4a5255ecfa1bd7d5c91904c5ff0ea24ee3e6b.tar.bz2 pytagomacs-b4d4a5255ecfa1bd7d5c91904c5ff0ea24ee3e6b.tar.xz | |
autoexpand
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/featherweight.py')
| -rwxr-xr-x | src/featherweight.py | 5 |
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'): |
