hyperterm: remove active marker correctly when closing a tab and marking a new one as active

This commit is contained in:
Guillermo Rauch 2016-07-08 14:28:29 -07:00
parent 56f7a8ee2e
commit 2d8c6c3d89

View file

@ -407,8 +407,9 @@ export default class HyperTerm extends Component {
active = _active - 1;
}
if (~activeMarkers.indexOf(active)) {
activeMarkers.splice(active, 1);
const ai2 = activeMarkers.indexOf(active);
if (~ai2) {
activeMarkers.splice(ai2, 1);
}
this.setState({