]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
edit: Fix Home/End escape codes
authorJouni Malinen <j@w1.fi>
Sat, 20 Nov 2010 09:20:48 +0000 (11:20 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 20 Nov 2010 09:20:48 +0000 (11:20 +0200)
src/utils/edit.c

index f080b09c0b5e97548efcc870022fbd33ba9334a5..62ba0e13583108294b5b3b76e4a53d941f038405 100644 (file)
@@ -456,12 +456,6 @@ static void edit_read_char(int sock, void *eloop_ctx, void *sock_ctx)
                case 'D': /* left */
                        move_left();
                        break;
-               case 'F': /* end */
-                       move_end();
-                       break;
-               case 'H': /* home */
-                       move_start();
-                       break;
                default:
                        printf("{ESC%s}[1]\n", esc_buf);
                        edit_redraw();
@@ -533,6 +527,12 @@ static void edit_read_char(int sock, void *eloop_ctx, void *sock_ctx)
 
        if (esc > 1 && esc_buf[0] == 'O') {
                switch (esc_buf[1]) {
+               case 'F': /* end */
+                       move_end();
+                       break;
+               case 'H': /* home */
+                       move_start();
+                       break;
                case 'P': /* F1 */
                        history_debug_dump();
                        break;