editor tabs are correctly closed