KEMBAR78
Fix SelectionRenderLayer._state by bmf-ribeiro · Pull Request #1543 · xtermjs/xterm.js · GitHub
Skip to content

Conversation

@bmf-ribeiro
Copy link
Contributor

Fixes #1541

public onSelectionChanged(terminal: ITerminal, start: [number, number], end: [number, number], columnSelectMode: boolean): void {
// Selection has not changed
if (this._state.start === start || this._state.end === end) {
if (this._areCoordinatesEqual(start, this._state.start) &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's pull this into a _didStateChange helper function, other than that LGTM

@Tyriar Tyriar added this to the 3.5.0 milestone Jul 1, 2018
@Tyriar Tyriar merged commit 9aad2f7 into xtermjs:master Jul 2, 2018
@Tyriar
Copy link
Member

Tyriar commented Jul 2, 2018

Thanks as always 🙂

@bmf-ribeiro bmf-ribeiro deleted the fix-SelectionRenderLayer-state branch July 2, 2018 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants