removal of file_size_width

This commit is contained in:
nova
2025-07-25 17:10:44 +02:00
parent af5a451ec2
commit 1a67c5b4d0
7 changed files with 49 additions and 60 deletions

View File

@@ -19,10 +19,10 @@ extern unsigned int file_modifiers;
extern pthread_mutex_t mutex_selection;
extern pthread_mutex_t mutex_rgt;
extern pthread_mutex_t mutex_mid;
extern volatile file *mid_content;
extern file *mid_content;
extern file *lft_content;
extern file *rgt_content;
extern file *file_current;
extern volatile file *file_current;
extern unsigned int terminal_height;
extern unsigned int terminal_width;
@@ -33,7 +33,7 @@ extern char *rgt_buffer;
extern char *btm_buffer;
extern unsigned long mid_file_count;
extern volatile unsigned int status;
extern unsigned int status;
unsigned int timeout_time = 0;
extern char *input;
@@ -240,9 +240,6 @@ void move_right(){
char *cmd = concat(file_extension_default_cmd[i].command, " ./\"");
cmd = concat(cmd, file_current->file_name);
cmd = concat(cmd, "\"");
btm_buffer = malloc(strlen(cmd));
strcpy(btm_buffer, cmd-1);
if (system(cmd) == -1) {
@@ -300,7 +297,7 @@ void open_with(){
btm_buffer = concat("open \"", file_current->file_name);
btm_buffer = concat(btm_buffer, "\" with:");
status = STATUS_UPDATE_SCREEN_0;
status |= STATUS_UPDATE_SCREEN_0;
werase(win_b);
mvwin(win_b, terminal_height-6, 0);
wresize(win_b, 5, terminal_width/3); /*the div3 just looks cool*/
@@ -340,7 +337,7 @@ void rename_hovered(){
btm_buffer = concat("rename \"", file_current->file_name);
btm_buffer = concat(btm_buffer, "\" to:");
status = STATUS_UPDATE_SCREEN_0;
status |= STATUS_UPDATE_SCREEN_0;
werase(win_b);
mvwin(win_b, terminal_height-6, 0);
wresize(win_b, 5, terminal_width/3); /*the div3 just looks cool*/
@@ -399,7 +396,7 @@ void delete(){
btm_buffer = concat(btm_buffer, "\n\n");
btm_buffer = concat(btm_buffer, "(y/N)");
status = STATUS_UPDATE_SCREEN_0;
status |= STATUS_UPDATE_SCREEN_0;
werase(win_b);
mvwin(win_b, terminal_height-6, 0);
wresize(win_b, 5, terminal_width/3); /*the div3 just looks cool*/
@@ -458,7 +455,7 @@ void delete(){
void makedir(){
btm_buffer = "create dir: ";
status = STATUS_UPDATE_SCREEN_0;
status |= STATUS_UPDATE_SCREEN_0;
werase(win_b);
mvwin(win_b, terminal_height-6, 0);
wresize(win_b, 5, terminal_width/3); /*the div3 just looks cool*/
@@ -480,7 +477,7 @@ void makedir(){
}
void makefile(){
btm_buffer = "create file: ";
status = STATUS_UPDATE_SCREEN_0;
status |= STATUS_UPDATE_SCREEN_0;
werase(win_b);
mvwin(win_b, terminal_height-6, 0);
wresize(win_b, 5, terminal_width/3); /*the div3 just looks cool*/
@@ -549,7 +546,7 @@ void cmd_on_selected(int passes, int index){
btm_buffer = concat(btm_buffer, "\n\n");
btm_buffer = concat(btm_buffer, "(y/N)");
status = STATUS_UPDATE_SCREEN_0;
status |= STATUS_UPDATE_SCREEN_0;
werase(win_b);
mvwin(win_b, terminal_height-6, 0);
wresize(win_b, 5, terminal_width/3); /*the div3 just looks cool*/