Skip to content

Commit 284a20a

Browse files
committed
---
yaml --- r: 127355 b: refs/heads/master c: 1d784d4 h: refs/heads/master i: 127353: d0e4571 127351: bb09745 v: v3
1 parent cc473a0 commit 284a20a

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,5 +1,5 @@
11
---
2-
refs/heads/master: 0f5ce0f0df106bde3b65a97079ebf8cd9e47bc20
2+
refs/heads/master: 1d784d46613af14e2c54f3b2b5ce8bb50775e18b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 12e0f72f517516ac4fce2aed85e6142e9b874bce
55
refs/heads/try: 850af8feebe925207829017f837be826401d71a7

trunk/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)