From e4a95cb989963c63b1cecd3405cf6d28dabb8cc4 Mon Sep 17 00:00:00 2001 From: axel Date: Thu, 15 Dec 2005 20:19:01 +1000 Subject: [PATCH] Add missing -r/--replace switch to commandline builtin darcs-hash:20051215101901-ac50b-721c6a3afc426b110506b5101a25c54205767dc5.gz --- builtin_commandline.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/builtin_commandline.c b/builtin_commandline.c index aa5345e07..6996adf1c 100644 --- a/builtin_commandline.c +++ b/builtin_commandline.c @@ -253,7 +253,7 @@ int builtin_commandline( wchar_t **argv ) int opt = wgetopt_long( argc, argv, - L"aijpctwfo", + L"aijpctwfor", long_options, &opt_index ); if( opt == -1 ) @@ -282,7 +282,11 @@ int builtin_commandline( wchar_t **argv ) case L'i': append_mode = INSERT_MODE; break; - + + case L'r': + append_mode = REPLACE_MODE; + break; + case 'c': cut_at_cursor=1; break;