webterm: avoid needless %blew tasks

Any change to the session object was triggering this. But that now includes
an "unacked keystrokes" counter, which updates frequently, and we
definitely don't want to send resize notifications in that case.
This commit is contained in:
fang 2022-09-17 10:36:55 +02:00
parent f5089b77eb
commit 1c36ad129d
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -271,7 +271,7 @@ export default function Buffer({ name, selected, dark }: BufferProps) {
await api.poke(pokeTask(name, { blew: { w: session.term.cols, h: session.term.rows } }));
session.term.focus();
}
}, [session, selected]);
}, [session?.term, selected]);
// Effects
// init session