Fire ensure event on tab close
@@ -101,6 +101,11 @@ pub fn remove_child(
i
};
if focus {
+ ctx.submit_command(Command::new(
+ LAPCE_UI_COMMAND,
+ LapceUICommand::EnsureEditorTabActiveVisble,
+ Target::Widget(editor_tab.widget_id),
+ ));
ctx.submit_command(Command::new(
LAPCE_UI_COMMAND,
LapceUICommand::Focus,
