about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-08-27 21:51:56 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2018-08-27 21:51:56 +0200
commit1d79d8be5619a4c51741dffd8d63d2db75a618f1 (patch)
treea7a0216309e9c3c63153911334e0fc6673ee98d5
parent8785e348ba6b9d43ffd8ce4b1a59059cbce6334c (diff)
downloadrust-1d79d8be5619a4c51741dffd8d63d2db75a618f1.tar.gz
rust-1d79d8be5619a4c51741dffd8d63d2db75a618f1.zip
Fix source automatic scroll
-rw-r--r--src/librustdoc/html/static/main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 88c25567d29..51ed6267829 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -242,6 +242,7 @@
         }
     }
 
+    highlightSourceLines(null);
     window.onhashchange = highlightSourceLines;
 
     // Gets the human-readable string for the virtual-key code of the