general stability improvements
This commit is contained in:
@@ -12,14 +12,14 @@
|
||||
#include "config.h"
|
||||
|
||||
|
||||
extern unsigned long selected_file_current;
|
||||
extern unsigned long selected_file_last;
|
||||
extern volatile unsigned long selected_file_current;
|
||||
extern volatile unsigned long selected_file_last;
|
||||
|
||||
extern unsigned int file_modifiers;
|
||||
extern pthread_mutex_t mutex_selection;
|
||||
extern pthread_mutex_t mutex_rgt;
|
||||
extern pthread_mutex_t mutex_mid;
|
||||
extern file *mid_content;
|
||||
extern volatile file *mid_content;
|
||||
extern file *lft_content;
|
||||
extern file *rgt_content;
|
||||
extern file *file_current;
|
||||
@@ -33,13 +33,12 @@ extern char *rgt_buffer;
|
||||
extern char *btm_buffer;
|
||||
extern unsigned long mid_file_count;
|
||||
|
||||
extern unsigned int status;
|
||||
extern volatile unsigned int status;
|
||||
|
||||
unsigned int timeout_time = 0;
|
||||
extern char *input;
|
||||
unsigned int input_pass;
|
||||
int parsed_input_number;
|
||||
extern char *terminal_width_empty_line;
|
||||
extern char *start_path;
|
||||
|
||||
int read_string(WINDOW *win, int y, int x, char *str);
|
||||
@@ -65,9 +64,6 @@ void user_interactions() {
|
||||
unsigned long binding_matches = 0;
|
||||
static char binding_pass = 0;
|
||||
|
||||
free(terminal_width_empty_line);
|
||||
terminal_width_empty_line = malloc(terminal_width);
|
||||
memset(terminal_width_empty_line, ' ', terminal_width);
|
||||
|
||||
ch = getch();
|
||||
if(ch != ERR) {
|
||||
@@ -118,12 +114,10 @@ void user_interactions() {
|
||||
} else if (strncmp(input+number_length, key_binding[i].key, cmp_len) == 0) {
|
||||
binding_matches++;
|
||||
attron(A_UNDERLINE);
|
||||
mvaddstr(terminal_height-binding_matches-2, 0, terminal_width_empty_line);
|
||||
mvaddstr(terminal_height-binding_matches-2, 0, "input");
|
||||
mvaddstr(terminal_height-binding_matches-2, sizeof("input"), "\t\t\t");
|
||||
mvaddstr(terminal_height-binding_matches-2, sizeof("input") + sizeof("\t\t\t"), "command");
|
||||
attroff(A_UNDERLINE);
|
||||
mvaddstr(terminal_height-binding_matches-1, 0, terminal_width_empty_line);
|
||||
mvaddstr(terminal_height-binding_matches-1, 0, key_binding[i].key);
|
||||
mvaddstr(terminal_height-binding_matches-1, 0, key_binding[i].key);
|
||||
mvaddstr(terminal_height-binding_matches-1, sizeof(key_binding[i].key), "\t");
|
||||
|
Reference in New Issue
Block a user