mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
64e631372f
commit
60475f2d35
1 changed files with 2 additions and 2 deletions
|
|
@ -17,8 +17,8 @@ impl Actor for TabRename {
|
||||||
const NAME: &str = "tab_rename";
|
const NAME: &str = "tab_rename";
|
||||||
|
|
||||||
fn act(cx: &mut Ctx, opt: Self::Options) -> Result<Data> {
|
fn act(cx: &mut Ctx, opt: Self::Options) -> Result<Data> {
|
||||||
let tab = cx.active().id;
|
let tab = cx.tab().id;
|
||||||
let pref = &mut cx.active_mut().pref;
|
let pref = &mut cx.tab_mut().pref;
|
||||||
|
|
||||||
if !opt.interactive {
|
if !opt.interactive {
|
||||||
pref.name = opt.name.unwrap_or_default().into_owned();
|
pref.name = opt.name.unwrap_or_default().into_owned();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue