From d0840fd63bcbb3aa8dd43d83a2fe275b00e94f6d Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 3 May 2018 22:20:57 +0200 Subject: Fix paths search --- src/librustdoc/html/static/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustdoc/html/static') diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js index 6d80145b29c..8569abeb09c 100644 --- a/src/librustdoc/html/static/main.js +++ b/src/librustdoc/html/static/main.js @@ -993,7 +993,7 @@ Math.min(results_returned[fullId].lev, returned); } if (index !== -1 || lev <= MAX_LEV_DISTANCE) { - if (index !== -1) { + if (index !== -1 && paths.length < 2) { lev = 0; } if (results[fullId] === undefined) { -- cgit 1.4.1-3-g733a5