summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4b22b42)
This variable is only used as a boolean.
static unsigned scroll_position;
static unsigned scroll_position;
-static int curses_active;
+static bool curses_active;
static pid_t cmd_pid;
static int command_fds[2] = {-1, -1};
static pid_t cmd_pid;
static int command_fds[2] = {-1, -1};
if (!curses_active)
return;
def_prog_mode();
if (!curses_active)
return;
def_prog_mode();
/* (Re-)initialize the curses library. */
static void init_curses(void)
{
/* (Re-)initialize the curses library. */
static void init_curses(void)
{
if (top.win && refresh() == ERR) /* refresh is really needed */
msg_n_exit(EXIT_FAILURE, "refresh() failed\n");
if (LINES < theme.lines_min || COLS < theme.cols_min)
if (top.win && refresh() == ERR) /* refresh is really needed */
msg_n_exit(EXIT_FAILURE, "refresh() failed\n");
if (LINES < theme.lines_min || COLS < theme.cols_min)