[ref] use fullpath, split listdir(), CURSOR_NAME
commitc455c73b83e5b2f992c517eb35b68c304e9095cc
authorafify <hassan@afify.dev>
Wed, 21 Oct 2020 18:42:53 +0000 (21 21:42 +0300)
committerafify <hassan@afify.dev>
Wed, 21 Oct 2020 18:42:53 +0000 (21 21:42 +0300)
tree68069690e38edba93f97d060448e006ca1694a1f
parent434a6964f1b83518458c78dde55acef4b8fa9e2f
[ref] use fullpath, split listdir(), CURSOR_NAME

- replace chdir() with get_dirp()
- move code from listdir() to new function get_direntr()
- temp remove filter
- define CURSOR_NAME cpane->direntr[cpane->hdir - 1].name
sfm.c