sfm

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

commit 40845e0dec1e3d1cc21afc160c24ca1940cecddb
parent 5beed9b1250f4dd16bcf0ebeef05da8885bee8b7
Author: afify <hassan@afify.dev>
Date:   Mon, 12 Oct 2020 14:41:50 +0300

[fix] rmwatch after changing directory

- move forward (open dir)
- move back (go to parent dir)
- bookmarks

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

diff --git a/sfm.c b/sfm.c @@ -888,6 +888,7 @@ delfd(void) static void mvbk(void) { + rmwatch(cpane); chdir(".."); getcwd(cpane->dirn, MAX_P); cpane->firstrow = 0; @@ -955,6 +956,7 @@ mvdwns(void) static void mvfor(void) { + rmwatch(cpane); if (cpane->dirc < 1) return; int s; @@ -1456,6 +1458,7 @@ grabkeys(struct tb_event *event) b = findbm(event->ch); if (b < 0) return; + rmwatch(cpane); strcpy(cpane->dirn, bmarks[b].path); cpane->firstrow = 0; cpane->hdir = 1;