mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: adapting to clear widget
This commit is contained in:
parent
b0f9c7aaba
commit
972e48c7c8
1 changed files with 0 additions and 9 deletions
|
|
@ -8,9 +8,6 @@ use yazi_config::{keymap::{Exec, Key, KeymapLayer}, BOOT};
|
||||||
use yazi_core::{emit, files::FilesOp, input::InputMode, Ctx, Event};
|
use yazi_core::{emit, files::FilesOp, input::InputMode, Ctx, Event};
|
||||||
use yazi_shared::Term;
|
use yazi_shared::Term;
|
||||||
|
|
||||||
use yazi_adaptor::ADAPTOR;
|
|
||||||
// use yazi_config::MANAGER;
|
|
||||||
|
|
||||||
use crate::{Executor, Logs, Panic, Root, Signals};
|
use crate::{Executor, Logs, Panic, Root, Signals};
|
||||||
|
|
||||||
pub(super) struct App {
|
pub(super) struct App {
|
||||||
|
|
@ -197,16 +194,10 @@ impl App {
|
||||||
|
|
||||||
Event::Select(opt, tx) => {
|
Event::Select(opt, tx) => {
|
||||||
self.cx.select.show(opt, tx);
|
self.cx.select.show(opt, tx);
|
||||||
let Rect { x, y, width, height} = self.cx.area(&self.cx.select.position);
|
|
||||||
let select_area = Rect {x:x+1, y:y+1, width:width-2, height:height-2};
|
|
||||||
ADAPTOR.image_hide(select_area).ok();
|
|
||||||
emit!(Render);
|
emit!(Render);
|
||||||
}
|
}
|
||||||
Event::Input(opt, tx) => {
|
Event::Input(opt, tx) => {
|
||||||
self.cx.input.show(opt, tx);
|
self.cx.input.show(opt, tx);
|
||||||
let Rect { x, y, width, height} = self.cx.area(&self.cx.input.position);
|
|
||||||
let input_area = Rect {x:x+1, y:y+1, width:width-2, height:height-2};
|
|
||||||
ADAPTOR.image_hide(input_area).ok();
|
|
||||||
emit!(Render);
|
emit!(Render);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue