aboutsummaryrefslogtreecommitdiff
path: root/bb.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-05-31 01:17:23 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-05-31 01:17:23 -0700
commite11158a69fae6d29baf761ee853277fd54404b8d (patch)
tree6922b6f60a59112f58eb965861cd449056b5367d /bb.c
parented5d87f9a2044c42ed902a61c1ab1a31975bf8cf (diff)
Moved populating files before startup commands, so '+mark:0' works
properly
Diffstat (limited to 'bb.c')
-rw-r--r--bb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bb.c b/bb.c
index 3d496bf..ba12b61 100644
--- a/bb.c
+++ b/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;