aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-06-10 01:08:19 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-06-10 01:08:19 +0530
commitca61d0ee8bd5e732b87d8b4b2e748c27e4c7d31f (patch)
tree92635153ae5b0549bbde3068c123609f0e1e7911 /builtin.cpp
parente96dabadf12d0c52b5a7bc1fb744b0c8fd9eeda0 (diff)
Fixed crash in history builtin for inputs like : history --search -prefix "echo"
Diffstat (limited to 'builtin.cpp')
-rw-r--r--builtin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.cpp b/builtin.cpp
index c31b0ad9..959fc843 100644
--- a/builtin.cpp
+++ b/builtin.cpp
@@ -3622,7 +3622,7 @@ static int builtin_history( parser_t &parser, wchar_t **argv )
woptind = 0;
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)
{