Skip to content

Commit

Permalink
Fix folding of deep nested trees
Browse files Browse the repository at this point in the history
Fixes aziz#158
  • Loading branch information
kaste committed Oct 12, 2024
1 parent 0e9a671 commit 20b3594
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ def _get_name_point(self, line):
if 'indent' in scope:
name_point = self.view.extract_scope(line.a).b
else:
name_point = line.a + (2 if not 'parent_dir' in scope else 0)
return name_point
name_point = line.a

return name_point + (2 if 'parent_dir' not in scope else 0)

def show_parent(self):
return self.view.settings().get('dired_show_parent', False)
Expand Down

0 comments on commit 20b3594

Please sign in to comment.