Remove broken page up/down support
authorJulien Desfossez <julien.desfossez@efficios.com>
Tue, 10 Apr 2012 21:21:47 +0000 (17:21 -0400)
committerJulien Desfossez <julien.desfossez@efficios.com>
Tue, 10 Apr 2012 21:21:47 +0000 (17:21 -0400)
will be reintegrated when process selection will be ok

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
src/cursesdisplay.c

index c18d46cbf2d709936ea433371e3068ff9f541a28..4c91e1ea49d41bee7824674394bcd3879b975d9e 100644 (file)
@@ -821,20 +821,6 @@ void *handle_keyboard(void *p)
                        }
                        break;
                case KEY_NPAGE:
-                       if ((selected_line + 10 < max_center_lines - 1) &&
-                                       ((selected_line + 10) < max_elements - 1)) {
-                               selected_line += 10;
-                               selected_in_list += 10;
-                       } else if (max_elements > max_center_lines) {
-                               selected_line = max_center_lines - 1;
-                               if (selected_in_list + 10 < max_elements - 1) {
-                                       selected_in_list += 10;
-                                       list_offset += (selected_in_list - max_center_lines + 1);
-                               }
-                       } else if (selected_line + 10 > max_elements) {
-                               selected_line = max_elements - 1;
-                       }
-                       update_current_view();
                        break;
                case KEY_UP:
                        if (perf_panel_visible) {
@@ -853,11 +839,6 @@ void *handle_keyboard(void *p)
                        }
                        break;
                case KEY_PPAGE:
-                       if (selected_line - 10 > 0)
-                               selected_line -= 10;
-                       else
-                               selected_line = 0;
-                       update_current_view();
                        break;
 
                /* Navigate the history with arrows */
This page took 0.032389 seconds and 4 git commands to generate.