Drop the unneeded input-function delete-line. It was only there for compatiability with readline, which we have dropped.

darcs-hash:20070930073018-75c98-d3abd6e63797c4954778486064f5f55a718f066c.gz
This commit is contained in:
liljencrantz 2007-09-30 17:30:18 +10:00
parent dde3838f2d
commit feec9579c2
4 changed files with 1 additions and 13 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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:
{

View File

@ -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