Fixed "bb +." being broken.
This commit is contained in:
parent
308c8c3e6d
commit
f960755b13
8
bb.c
8
bb.c
@ -556,12 +556,12 @@ void run_bbcmd(bb_t *bb, const char *cmd)
|
||||
const char *value = strchr(cmd, ':');
|
||||
if (value) ++value;
|
||||
#define set_bool(target) do { if (!value) { target = !target; } else { target = value[0] == '1'; } } while (0)
|
||||
if (matches_cmd(cmd, "..")) { // +..
|
||||
set_bool(bb->show_dotdot);
|
||||
populate_files(bb, bb->path);
|
||||
} else if (matches_cmd(cmd, ".")) { // +.
|
||||
if (matches_cmd(cmd, ".")) { // +.
|
||||
set_bool(bb->show_dot);
|
||||
populate_files(bb, bb->path);
|
||||
} else if (matches_cmd(cmd, "..")) { // +..
|
||||
set_bool(bb->show_dotdot);
|
||||
populate_files(bb, bb->path);
|
||||
} else if (matches_cmd(cmd, "bind:")) { // +bind:<keys>:<script>
|
||||
char *value_copy = memcheck(strdup(value));
|
||||
char *keys = trim(value_copy);
|
||||
|
Loading…
Reference in New Issue
Block a user