mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 05:38:41 -09:00
hyperterm: remove active marker correctly when closing a tab and marking a new one as active
This commit is contained in:
parent
56f7a8ee2e
commit
2d8c6c3d89
1 changed files with 3 additions and 2 deletions
|
|
@ -407,8 +407,9 @@ export default class HyperTerm extends Component {
|
||||||
active = _active - 1;
|
active = _active - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (~activeMarkers.indexOf(active)) {
|
const ai2 = activeMarkers.indexOf(active);
|
||||||
activeMarkers.splice(active, 1);
|
if (~ai2) {
|
||||||
|
activeMarkers.splice(ai2, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue