sfm

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

commit 79981d5219e148bb64e77365c2681575980138b7
parent 63c32d3dfcdef2ef39a49b1009c5e22976f7e018
Author: afify <hassan@afify.dev>
Date:   Fri,  2 Jul 2021 22:01:12 +0300

[rm] mvmid()

Diffstat:
Mconfig.def.h | 1-
Msfm.c | 15---------------
2 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -76,7 +76,6 @@ static Key nkeys[] = { { {.key = TB_KEY_ARROW_LEFT}, mvbk, {.i = 0} }, { {.ch = 'g'}, mvtop, {.i = 0} }, { {.ch = 'G'}, mvbtm, {.i = 0} }, - { {.ch = 'M'}, mvmid, {.i = 0} }, { {.ch = 'n'}, crnf, {0} }, { {.ch = 'N'}, crnd, {0} }, { {.ch = 'd'}, delent, {0} }, diff --git a/sfm.c b/sfm.c @@ -140,7 +140,6 @@ static void mv_ver(const Arg *arg); static void mvbk(const Arg *arg); static void mvbtm(const Arg *arg); static void mvfwd(const Arg *arg); -static void mvmid(const Arg *arg); static void mvtop(const Arg *arg); static void bkmrk(const Arg *arg); static int get_usrinput(char *, size_t, const char *, ...); @@ -865,20 +864,6 @@ mvfwd(const Arg *arg) } static void -mvmid(const Arg *arg) -{ - if (cpane->dirc < 1) - return; - rm_hi(cpane, cpane->hdir - 1); - if (cpane->dirc < scrheight / 2) - cpane->hdir = (cpane->dirc + 1) / 2; - else - cpane->hdir = (scrheight / 2) + cpane->firstrow; - add_hi(cpane, cpane->hdir - 1); - print_info(cpane, NULL); -} - -static void mvtop(const Arg *arg) { if (cpane->dirc < 1)