Skip to content

Commit bacd90a

Browse files
committed
maintain focus
1 parent 090c6b0 commit bacd90a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chadtree/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ async def step(method: Method, params: Sequence[Any]) -> None:
146146
async with lock:
147147
if stage := await handler(state_ref.val, *params):
148148
state_ref.val = stage.state
149-
focus_ref.val = stage.focus
149+
if stage.focus:
150+
focus_ref.val = stage.focus
150151
event.set()
151152
else:
152153
assert False, (method, params)

0 commit comments

Comments
 (0)