Commit a6c24e9c authored by Steve Bennett's avatar Steve Bennett
Browse files

lsearch, switch: fix -regexp case with option-like pattern



If the pattern begins with -, the internal invocation of regexp
will treat the pattern as an option. Fix this by adding -- to the
internal invocation of regexp.

Fixes #154

Reported-by: default avatarBarry Arthur <barry.arthur@gmail.com>
Signed-off-by: default avatarSteve Bennett <steveb@workware.net.au>
parent 659f0431
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment