sfm

simple file manager
git clone https://git.afify.dev/sfm.git
Log | Files | Refs | README | LICENSE

commit de7271a3c6f5bd7ed5ccd7abe6100ef8499cd887
parent 40845e0dec1e3d1cc21afc160c24ca1940cecddb
Author: afify <hassan@afify.dev>
Date:   Mon, 12 Oct 2020 16:06:44 +0300

[fix] parent_row after chdir to a bookmark

- problem: changing current dir through bookmark key, parent_row number
	is set to previous dir.
- solution: if found bookmark set parent_row to 1

Diffstat:
Msfm.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/sfm.c b/sfm.c @@ -1461,6 +1461,7 @@ grabkeys(struct tb_event *event) rmwatch(cpane); strcpy(cpane->dirn, bmarks[b].path); cpane->firstrow = 0; + cpane->parent_row = 1; cpane->hdir = 1; if (listdir(AddHi, NULL) < 0) print_error(strerror(errno));