diff options
Diffstat (limited to '')
-rw-r--r-- | screen_keydef.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/screen_keydef.c b/screen_keydef.c index 46510c06b..4bda6ea21 100644 --- a/screen_keydef.c +++ b/screen_keydef.c @@ -150,6 +150,8 @@ assign_new_key(WINDOW *w, int cmd_index, int key_index) snprintf(buf, BUFSIZE, "Enter new key for %s: ", cmds[cmd_index].name); key = screen_getch(w, buf); + if( key==KEY_RESIZE ) + screen_resize(); if( key==ERR ) { screen_status_printf("Aborted!"); @@ -214,6 +216,13 @@ keydef_init(WINDOW *w, int cols, int rows) lw = list_window_init(w, cols, rows); } +static void +keydef_resize(int cols, int rows) +{ + lw->cols = cols; + lw->rows = rows; +} + static void keydef_exit(void) { @@ -370,6 +379,7 @@ get_screen_keydef(void) functions.exit = keydef_exit; functions.open = keydef_open; functions.close = keydef_close; + functions.resize = keydef_resize; functions.paint = keydef_paint; functions.update = keydef_update; functions.cmd = keydef_cmd; |