Skip to content

Commit d438295

Browse files
committed
---
yaml --- r: 127423 b: refs/heads/auto c: 1d784d4 h: refs/heads/master i: 127421: 5cbd634 127419: ba56dc2 127415: dd98971 127407: 99b2dab 127391: 1dff837 127359: 2f4800f v: v3
1 parent f0f56e5 commit d438295

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 0f5ce0f0df106bde3b65a97079ebf8cd9e47bc20
16+
refs/heads/auto: 1d784d46613af14e2c54f3b2b5ce8bb50775e18b
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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)