Moved populating files before startup commands, so '+mark:0' works
properly
This commit is contained in:
parent
ed5d87f9a2
commit
e11158a69f
4
bb.c
4
bb.c
@ -1127,6 +1127,8 @@ void bb_browse(bb_t *bb, const char *path)
|
||||
int lastwidth = termwidth, lastheight = termheight;
|
||||
int check_cmds = 1;
|
||||
|
||||
populate_files(bb, path);
|
||||
|
||||
for (int i = 0; startupcmds[i]; i++) {
|
||||
if (startupcmds[i][0] == '+') {
|
||||
if (execute_cmd(bb, startupcmds[i] + 1) == BB_QUIT)
|
||||
@ -1137,8 +1139,6 @@ void bb_browse(bb_t *bb, const char *path)
|
||||
}
|
||||
}
|
||||
|
||||
populate_files(bb, path);
|
||||
|
||||
init_term();
|
||||
fputs(T_ON(T_ALT_SCREEN), tty_out);
|
||||
bb->scroll = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user