sunaku/dasht

Filtering for docset "C++" yields an error

MartyLake opened this issue · 1 comments

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>"

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