mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
Add missing -r/--replace switch to commandline builtin
darcs-hash:20051215101901-ac50b-721c6a3afc426b110506b5101a25c54205767dc5.gz
This commit is contained in:
parent
9cf4a2a0b3
commit
e4a95cb989
1 changed files with 6 additions and 2 deletions
|
@ -253,7 +253,7 @@ int builtin_commandline( wchar_t **argv )
|
||||||
|
|
||||||
int opt = wgetopt_long( argc,
|
int opt = wgetopt_long( argc,
|
||||||
argv,
|
argv,
|
||||||
L"aijpctwfo",
|
L"aijpctwfor",
|
||||||
long_options,
|
long_options,
|
||||||
&opt_index );
|
&opt_index );
|
||||||
if( opt == -1 )
|
if( opt == -1 )
|
||||||
|
@ -283,6 +283,10 @@ int builtin_commandline( wchar_t **argv )
|
||||||
append_mode = INSERT_MODE;
|
append_mode = INSERT_MODE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case L'r':
|
||||||
|
append_mode = REPLACE_MODE;
|
||||||
|
break;
|
||||||
|
|
||||||
case 'c':
|
case 'c':
|
||||||
cut_at_cursor=1;
|
cut_at_cursor=1;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue