Skip to content

Commit

Permalink
Fix 'show source [in new tab]' under -lines
Browse files Browse the repository at this point in the history
  • Loading branch information
tbg committed Nov 21, 2024
1 parent b92577c commit a229014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/driver/html/stacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function stackViewer(stacks, nodes) {
}

// Update params to include src.
let v = pprofQuoteMeta(stacks.Sources[src].FullName);
let v = pprofQuoteMeta(stacks.Sources[src].FullName.replace(/:[0-9]+$/, ''));
if (param != 'f' && param != 'sf') { // old f,sf values are overwritten
// Add new source to current parameter value.
const old = params.get(param);
Expand Down

0 comments on commit a229014

Please sign in to comment.