mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Fixed crash in history builtin for inputs like : history --search -prefix "echo"
This commit is contained in:
parent
e96dabadf1
commit
ca61d0ee8b
1 changed files with 1 additions and 1 deletions
|
@ -3622,7 +3622,7 @@ static int builtin_history( parser_t &parser, wchar_t **argv )
|
||||||
woptind = 0;
|
woptind = 0;
|
||||||
history_t *history = reader_get_history();
|
history_t *history = reader_get_history();
|
||||||
|
|
||||||
while((opt = wgetopt_long( argc, argv, L"pdsc", long_options, &opt_index )) != -1)
|
while((opt = wgetopt_long_only( argc, argv, L"pdscvl", long_options, &opt_index )) != -1)
|
||||||
{
|
{
|
||||||
switch(opt)
|
switch(opt)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue