Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
[Editor] do not update highlight line by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonLaster committed Jul 3, 2018
1 parent 6af584f commit 5ec834c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Editor/HighlightLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,14 @@ export class HighlightLine extends Component<Props> {
return false;
}

return true;
if (
editorLine !== this.previousEditorLine ||
this.props.selectedSource !== selectedSource
) {
return true;
}

return false;
}

componentDidUpdate(prevProps: Props) {
Expand Down

0 comments on commit 5ec834c

Please sign in to comment.