Editor: add x icon on tabs. fix #439.