From 47019164a5c6acb8c6658266252f0c9b09638a06 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 6 Jun 2019 15:37:26 -0700 Subject: [PATCH] Fixed some wrap/cursor visibility issues --- bb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bb.c b/bb.c index c6c53f4..2f7f2d7 100644 --- a/bb.c +++ b/bb.c @@ -155,7 +155,7 @@ extern const char *startupcmds[]; extern const column_t columns[128]; // Constants -static const char *T_ENTER_BBMODE = T_OFF(T_SHOW_CURSOR) T_ON(T_MOUSE_XY ";" T_MOUSE_CELL ";" T_MOUSE_SGR ";" T_WRAP); +static const char *T_ENTER_BBMODE = T_OFF(T_SHOW_CURSOR ";" T_WRAP) T_ON(T_MOUSE_XY ";" T_MOUSE_CELL ";" T_MOUSE_SGR); static const char *T_LEAVE_BBMODE = T_OFF(T_MOUSE_XY ";" T_MOUSE_CELL ";" T_MOUSE_SGR ";" T_ALT_SCREEN) T_ON(T_SHOW_CURSOR ";" T_WRAP); static const char *T_LEAVE_BBMODE_PARTIAL = T_OFF(T_MOUSE_XY ";" T_MOUSE_CELL ";" T_MOUSE_SGR) T_ON(T_WRAP); @@ -1312,6 +1312,7 @@ void bb_browse(bb_t *bb, const char *path) move_cursor(tty_out, 0, 3 + bb->cursor - bb->scroll); fputs("\033[K", tty_out); } + fputs(T_ON(T_SHOW_CURSOR), tty_out); close_term(); run_cmd_on_selection(bb, binding->command); init_term();