Commits

Takayuki Shimizukawa committed 66625b4

fix: A wrong conditoin check break search feature on first page that is usually index.rst. This issue was introduced at 46d0815, cfbdd84.

  • Participants
  • Parent commits 60a6720

Comments (0)

Files changed (2)

 
 * #1265: Fix i18n: crash when translating section name that is pointed from
   named target.
+* A wrong conditoin check break search feature on first page that is usually
+  index.rst. This issue was introduced at 1.2b1
 
 
 Release 1.2 beta2 (released Sep 17, 2013)

sphinx/themes/basic/static/searchtools.js_t

     for (i = 0; i < searchterms.length; i++) {
       var word = searchterms[i];
       // no match but word was a required one
-      if (!(files = terms[word]))
+      if ((files = terms[word]) === undefined)
         break;
       if (files.length === undefined) {
         files = [files];