Remove terminal size restriction and unused code

This commit is contained in:
Night Kaly 2024-11-20 22:28:41 +00:00
parent 4014407a34
commit f68ad28368
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM

5
ccc.c
View file

@ -133,7 +133,6 @@ int get_window_size(int *row, int *col);
void bprintf(const char *fmt, ...);
/* global variables */
unsigned int focus = 0;
long sel_file = 0;
int file_picker = 0;
int to_open_file = 0;
@ -505,10 +504,6 @@ int getsel(void)
void handle_sigwinch(int ignore)
{
get_window_size(&rows, &cols);
if (cols < 80 || rows < 24) {
cleanup();
die("ccc: Terminal size needs to be at least 80x24");
}
half_width = cols / 2 + window_offset;
list_files();
}