summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b64329b)
raw | patch | inline | side by side (parent: b64329b)
author | Max Kellermann <max@duempel.org> | |
Fri, 3 Oct 2008 12:28:43 +0000 (14:28 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 3 Oct 2008 12:28:43 +0000 (14:28 +0200) |
Since we are handling SIGWINCH, we do not need to handle KEY_RESIZE
from ncurses. Remove it.
from ncurses. Remove it.
src/command.c | patch | blob | history | |
src/screen_file.c | patch | blob | history | |
src/screen_keydef.c | patch | blob | history | |
src/wreadln.c | patch | blob | history |
diff --git a/src/command.c b/src/command.c
index af188d19ab0521670702b0c86694eb050b59fc3d..b107ba3f08b388c3da26381eab9232a139270878 100644 (file)
--- a/src/command.c
+++ b/src/command.c
c = wgetch(w);
- /* handle resize event */
- if (c == KEY_RESIZE)
- screen_resize();
-
#ifdef ENABLE_RAW_MODE
/* handle SIGSTOP (Ctrl-Z) */
if (c == 26 || c == 407)
diff --git a/src/screen_file.c b/src/screen_file.c
index 1ba96403a8ab3ac4e8b1f921834e985c13a3484e..3029165f2ade045a82c932805b570452f1befa0d 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
g_free(str);
key = tolower(screen_getch(screen->status_window.w, buf));
g_free(buf);
- if( key==KEY_RESIZE )
- screen_resize();
if( key != YES[0] ) {
screen_status_printf(_("Aborted!"));
return 0;
diff --git a/src/screen_keydef.c b/src/screen_keydef.c
index 6e9cb9a25ecde8288bf96df3b4287efb123f6e98..268bc48d9ab3cd8f72a4cdaa637d7e91f4e87308 100644 (file)
--- a/src/screen_keydef.c
+++ b/src/screen_keydef.c
key = screen_getch(w, buf);
g_free(buf);
- if (key == KEY_RESIZE)
- screen_resize();
-
if (key==ERR) {
screen_status_printf(_("Aborted!"));
return;
diff --git a/src/wreadln.c b/src/wreadln.c
index e52d1fd04c83290f9a631127f18b0a95965db8ca..bf31d1db349edbaadb6114f7400b8d8c1c7e2b87 100644 (file)
--- a/src/wreadln.c
+++ b/src/wreadln.c
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;
}
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;
}
}