Skip to content

Commit fc02afb

Browse files
committed
---
yaml --- r: 127655 b: refs/heads/snap-stage3 c: 1d784d4 h: refs/heads/master i: 127653: 2d66b36 127651: 654b0e3 127647: 181c9a2 v: v3
1 parent 468b052 commit fc02afb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 49a970f2449a78f28b6c301e542d38593094ca77
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 0f5ce0f0df106bde3b65a97079ebf8cd9e47bc20
4+
refs/heads/snap-stage3: 1d784d46613af14e2c54f3b2b5ce8bb50775e18b
55
refs/heads/try: d9c23fcbaea89871667272a67ecb8d3a512162f3
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustdoc/html/static/main.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@
368368
}
369369

370370
function getQuery() {
371-
var matches, type, query = $('.search-input').val();
371+
var matches, type, query, raw = $('.search-input').val();
372+
query = raw;
372373

373374
matches = query.match(/^(fn|mod|struct|enum|trait|t(ype)?d(ef)?)\s*:\s*/i);
374375
if (matches) {
@@ -379,6 +380,7 @@
379380
}
380381

381382
return {
383+
raw: raw,
382384
query: query,
383385
type: type,
384386
id: query + type,
@@ -534,10 +536,10 @@
534536
if (browserSupportsHistoryApi()) {
535537
if (!history.state && !params.search) {
536538
history.pushState(query, "", "?search=" +
537-
encodeURIComponent(query.query));
539+
encodeURIComponent(query.raw));
538540
} else {
539541
history.replaceState(query, "", "?search=" +
540-
encodeURIComponent(query.query));
542+
encodeURIComponent(query.raw));
541543
}
542544
}
543545

0 commit comments

Comments
 (0)