aboutsummaryrefslogtreecommitdiffstats
path: root/screen_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen_file.c')
-rw-r--r--screen_file.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/screen_file.c b/screen_file.c
index a0b9ee3f7..e57fc317f 100644
--- a/screen_file.c
+++ b/screen_file.c
@@ -178,6 +178,8 @@ handle_delete(screen_t *screen, mpd_client_t *c)
snprintf(buf, BUFSIZE, "Delete playlist %s [y/n] ? ", str);
g_free(str);
key = tolower(screen_getch(screen->status_window.w, buf));
+ if( key==KEY_RESIZE )
+ screen_resize();
if( key!='y' )
{
screen_status_printf("Aborted!");
@@ -331,6 +333,13 @@ file_init(WINDOW *w, int cols, int rows)
}
static void
+file_resize(int cols, int rows)
+{
+ lw->cols = cols;
+ lw->rows = rows;
+}
+
+static void
file_exit(void)
{
list_window_free(lw);
@@ -484,6 +493,7 @@ get_screen_file(void)
functions.exit = file_exit;
functions.open = file_open;
functions.close = file_close;
+ functions.resize = file_resize;
functions.paint = file_paint;
functions.update = file_update;
functions.cmd = file_cmd;