mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-15 22:48:00 +02:00
fix: clicking a gutter line updates the URL to #L<n>
The viewer already supported jumping to a line via #L42 in the URL but never produced one — users had to type it manually. Wire guttermousedown on the ACE editor to replaceState a #L<n> hash, with shift-click for a range. Also reapply the highlight on hashchange so pasting a URL into the address bar works without reload. Fixes #392.
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user