diff --git a/input.c b/input.c index bb6ea77b6..b5dba7347 100644 --- a/input.c +++ b/input.c @@ -129,7 +129,6 @@ static const wchar_t *name_arr[] = L"complete", L"beginning-of-history", L"end-of-history", - L"delete-line", L"backward-kill-line", L"kill-whole-line", L"kill-word", @@ -212,7 +211,6 @@ static const wchar_t code_arr[] = R_COMPLETE, R_BEGINNING_OF_HISTORY, R_END_OF_HISTORY, - R_DELETE_LINE, R_BACKWARD_KILL_LINE, R_KILL_WHOLE_LINE, R_KILL_WORD, diff --git a/input.h b/input.h index 019359342..3c3bae159 100644 --- a/input.h +++ b/input.h @@ -33,7 +33,6 @@ enum R_COMPLETE, R_BEGINNING_OF_HISTORY, R_END_OF_HISTORY, - R_DELETE_LINE, R_BACKWARD_KILL_LINE, R_KILL_WHOLE_LINE, R_KILL_WORD, diff --git a/reader.c b/reader.c index 6a15ca4f7..47fd18690 100644 --- a/reader.c +++ b/reader.c @@ -2837,15 +2837,6 @@ wchar_t *reader_readline() break; } - case R_DELETE_LINE: - { - data->buff[0]=0; - data->buff_len=0; - data->buff_pos=0; - repaint(); - break; - } - /* kill one word left */ case R_BACKWARD_KILL_WORD: { diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish index 8db6d8037..7e9475a30 100644 --- a/share/functions/fish_default_key_bindings.fish +++ b/share/functions/fish_default_key_bindings.fish @@ -77,7 +77,7 @@ function fish_default_key_bindings -d "Default (Emacs-like) key bindings for fis bind \el __fish_list_current_token bind \ew 'set tok (commandline -pt); if test $tok[1]; whatis $tok[1]; commandline -f repaint; end' bind \cl 'clear; commandline -f repaint' - bind \cc delete-line + bind \cc 'commandline ""; commandline -f repaint' bind \cu backward-kill-line bind \ed kill-word bind \cw backward-kill-word