From 20b3594ebebbe0048e5591a56541d58b3025e610 Mon Sep 17 00:00:00 2001 From: herr kaste Date: Sat, 12 Oct 2024 00:21:47 +0200 Subject: [PATCH] Fix folding of deep nested trees Fixes #158 --- common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common.py b/common.py index dcef4ed..2015c57 100644 --- a/common.py +++ b/common.py @@ -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)