Support the ^[[1~ for Home and ^[[4~ for End escape sequences in sh(1).

This commit is contained in:
Jonas 'Sortie' Termansen 2017-09-30 14:58:41 +02:00
parent ca2969b033
commit 48e41b36a3
1 changed files with 4 additions and 0 deletions

View File

@ -611,8 +611,12 @@ void edit_line(struct edit_line* edit_state)
edit_line_show(edit_state);
} break;
case '~':
if ( params[0] == 1 )
edit_line_type_home(edit_state);
if ( params[0] == 3 )
edit_line_type_delete(edit_state);
if ( params[0] == 4 )
edit_line_type_end(edit_state);
break;
}
escape = 0;