mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 13:08:49 +00:00
Remove dead code in history builtin.
This commit is contained in:
parent
c4a453fb22
commit
bbce0909fe
1 changed files with 1 additions and 4 deletions
|
@ -3852,7 +3852,7 @@ static int builtin_history(parser_t &parser, wchar_t **argv)
|
|||
if (! history)
|
||||
history = &history_t::history_with_name(L"fish");
|
||||
|
||||
while ((opt = wgetopt_long_only(argc, argv, L"pdscvl", long_options, &opt_index)) != -1)
|
||||
while ((opt = wgetopt_long_only(argc, argv, L"pdscvl", long_options, &opt_index)) != EOF)
|
||||
{
|
||||
switch (opt)
|
||||
{
|
||||
|
@ -3880,9 +3880,6 @@ static int builtin_history(parser_t &parser, wchar_t **argv)
|
|||
builtin_print_help(parser, argv[0], stdout_buffer);
|
||||
return STATUS_BUILTIN_OK;
|
||||
break;
|
||||
case EOF:
|
||||
/* Remainder are arguments */
|
||||
break;
|
||||
case '?':
|
||||
append_format(stderr_buffer, BUILTIN_ERR_UNKNOWN, argv[0], argv[woptind-1]);
|
||||
return STATUS_BUILTIN_ERROR;
|
||||
|
|
Loading…
Reference in a new issue