Skip to content

Commit

Permalink
when you add a new tab, focus it
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkos-net committed Feb 19, 2024
1 parent a2fe54c commit 142692a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ fn code_tabs_ui(ctx: &Context, ui: &mut Ui, state: &mut EditorState) {
}
if ui.button("+").clicked() {
state.tabs.push(Default::default());
state.active_tab_id += 1;
}
});
});
Expand Down

0 comments on commit 142692a

Please sign in to comment.