Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering for docset "C++" yields an error #49

Closed
MartyLake opened this issue May 3, 2020 · 1 comment
Closed

Filtering for docset "C++" yields an error #49

MartyLake opened this issue May 3, 2020 · 1 comment
Assignees
Labels

Comments

@MartyLake
Copy link

When I use the dropdown menu, it enters ^C++$ that produces the error ^C++$ docsets not installed so vector not searched.

This error does not appear when searching in the CMake docset for example.

I can workaround by patching :

$ git diff

diff --git a/bin/dasht-server-http b/bin/dasht-server-http
index 90211f1..5b4853b 100755
--- a/bin/dasht-server-http
+++ b/bin/dasht-server-http
@@ -181,7 +181,7 @@ cat <<HEADER
       <label>in docsets
         <select name="docsets">
           <option value="" selected>matched $1 out of $3</option>
-          $(echo "$docsets_menu" | awk -v were_any_ignored=$2 '{
+          $(echo "$docsets_menu" | sed 's/\+/\\+/g' | awk -v were_any_ignored=$2 '{
             value = "^" $2 "$"
             label = were_any_ignored && $1 ? "((( " $2 " )))" : $2
             print "<option value=\"" value "\">" label "</option>"
@sunaku sunaku self-assigned this May 5, 2020
@sunaku sunaku added the bug label May 6, 2020
@sunaku
Copy link
Owner

sunaku commented May 6, 2020

Thanks for reporting this bug. 👍 It's fixed now in commit 1170855.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants