aboutsummaryrefslogtreecommitdiffstats
path: root/src/wreadln.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-03 14:28:43 +0200
committerMax Kellermann <max@duempel.org>2008-10-03 14:28:43 +0200
commit0ae851aa39de5dfdf6b97c3e774aa322c820f410 (patch)
treee96335f74369573b256f3ef65166324f5bab3d42 /src/wreadln.c
parentb64329b9942d2315dd968264e92a51d63a135a77 (diff)
downloadmpd-0ae851aa39de5dfdf6b97c3e774aa322c820f410.tar.gz
mpd-0ae851aa39de5dfdf6b97c3e774aa322c820f410.tar.xz
mpd-0ae851aa39de5dfdf6b97c3e774aa322c820f410.zip
removed KEY_RESIZE
Since we are handling SIGWINCH, we do not need to handle KEY_RESIZE from ncurses. Remove it.
Diffstat (limited to '')
-rw-r--r--src/wreadln.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/wreadln.c b/src/wreadln.c
index e52d1fd04..bf31d1db3 100644
--- a/src/wreadln.c
+++ b/src/wreadln.c
@@ -208,17 +208,6 @@ _wreadln(WINDOW *w,
case ERR: /* ingnore errors */
break;
- case KEY_RESIZE:
- /* a resize event */
- if( x1>COLS ) {
- x1=COLS;
- width = x1-x0;
- cursor_move_to_eol(&cursor, &start, width, x0, x1, line);
- }
- /* make shure the cursor is visible */
- curs_set(1);
- break;
-
case TAB:
if( gcmp ) {
char *prefix = NULL;
@@ -614,17 +603,6 @@ _wreadln(WINDOW *w,
}
cursor_move_to_eol(&cursor, &start, width, x0, x1, wline);
break;
- case KEY_RESIZE:
- /* resize event */
- if( x1>COLS )
- {
- x1=COLS;
- width = x1-x0;
- cursor_move_to_eol(&cursor, &start, width, x0, x1, wline);
- }
- /* make shure the cursor is visible */
- curs_set(1);
- break;
}
}