Skip to content

Commit

Permalink
Do not allow to select unselectable diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
rafeca committed Sep 20, 2020
1 parent 6996944 commit 614b581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/ui/diff/side-by-side-diff-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export class SideBySideDiffRow extends React.Component<
* as non-selectable.
*/
private renderLineNumber(lineNumber?: number, isSelected?: boolean) {
if (isSelected === undefined) {
if (!this.props.isDiffSelectable || isSelected === undefined) {
return <div className="line-number">{lineNumber}</div>
}

Expand Down

0 comments on commit 614b581

Please sign in to comment.