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 744bc87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ 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 744bc87

Please sign in to comment.