editor: renamed _current_tab variable to _current_tab_index
editor: fixed handling of "disabled" popup items
editor: set sub-popup to appear beside the cursor not below it