From 303b6bad087d596bb44ba9a71f5b5e3ec20cdfec Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 13 Aug 2021 13:08:22 -0700 Subject: [PATCH] Minor changes/fixes --- draw.c | 1 + scripts/bbkeys | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/draw.c b/draw.c index b8dd00b..c8d7737 100644 --- a/draw.c +++ b/draw.c @@ -302,6 +302,7 @@ void render(FILE *out, bb_t *bb) int onscreen = winsize.ws_row - 3; bb->dirty |= (winsize.ws_row != oldsize.ws_row) || (winsize.ws_col != oldsize.ws_col); + oldsize = winsize; if (!bb->dirty) { // Use terminal scrolling: diff --git a/scripts/bbkeys b/scripts/bbkeys index 748fdae..97bad28 100755 --- a/scripts/bbkeys +++ b/scripts/bbkeys @@ -25,6 +25,10 @@ kill -TSTP $PPID ## Ctrl-\: Quit and generate core dump kill -QUIT $PPID +## +: Run a bb command +bbcmd "$(bbask '+')" +bbcmd refresh + ## Section: File Navigation ## j,Down: Next file bbcmd move:+1 @@ -67,10 +71,10 @@ mark="$(find "$XDG_CONFIG_HOME"/bb/marks/ -mindepth 1 -type l -printf '%P\0' | b mark="$(readlink -f "$XDG_CONFIG_HOME"/bb/marks/"$mark")" bbcmd cd:"$mark" -## -,Backspace: Go to previous directory +## [,Backspace: Go to previous directory bbcmd cd:- -## +,=: Go to next directory +## ]: Go to next directory bbcmd cd:+ ## ;: Show selected files