chiark / gitweb /
doxygen: fix heavily nested result URL combining.
authorVladimír Vondruš <mosra@centrum.cz>
Sat, 10 Feb 2018 16:31:36 +0000 (17:31 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 10 Feb 2018 16:32:49 +0000 (17:32 +0100)
The test passes again.

doxygen/search.js

index 79903fe4df15a2152ba8425be63918f2c6167cfa..ac58ef2c6ccd8e4d1bbad205c26f622933e3afa2 100644 (file)
@@ -323,7 +323,7 @@ var Search = {
 
         /* Otherwise extract URL from here */
         } else {
-            let max = Math.min(j + maxUrlPrefix, nextResultOffset);
+            let max = Math.min(j + maxUrlPrefix - url.length, nextResultOffset);
             for(; j != max; ++j) {
                 url += String.fromCharCode(this.map.getUint8(j));
             }