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:
tdurieux
2026-05-03 20:25:41 +02:00
parent 2eb19904db
commit b316d18bd8
2 changed files with 57 additions and 17 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long