Skip to content
Snippets Groups Projects
Commit ab3bcaba authored by Albert Gräf's avatar Albert Gräf
Browse files

In addition to doc/ also allow extra/ for directory displays.

parent 1db3c009
No related branches found
No related tags found
No related merge requests found
...@@ -457,9 +457,10 @@ function doc_search() { ...@@ -457,9 +457,10 @@ function doc_search() {
display_toc(); display_toc();
return; return;
} }
// if the search term is doc/* short circuit the search and // if the search term is doc/* or extra/* then short circuit
// just list the docs in that directory // the search and just list the docs in that directory
if (search_text.slice(0, 4) === "doc/" && if ((search_text.slice(0, 4) === "doc/" ||
search_text.slice(0, 6) === "extra/") &&
search_text.indexOf(" ") === -1) { search_text.indexOf(" ") === -1) {
display_directory(path.join(pdgui.get_lib_dir(), search_text)); display_directory(path.join(pdgui.get_lib_dir(), search_text));
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment