mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-24 07:26:51 +03:00
Merge branch 'chat-safe-tab' (#2053)
* origin/chat-safe-tab: chat: give terminal bell on tab in an empty buffer chat: don't crash on tab in an empty buffer Signed-off-by: Jared Tobin <jared@tlon.io>
This commit is contained in:
commit
fa4544406e
@ -379,8 +379,12 @@
|
||||
++ tab
|
||||
|= pos=@ud
|
||||
^- (quip card state)
|
||||
?. =(';' (snag 0 buf.state.cli))
|
||||
[~ all-state]
|
||||
?: ?| =(~ buf.state.cli)
|
||||
!=(';' -.buf.state.cli)
|
||||
==
|
||||
:_ all-state
|
||||
[(effect:sh-out [%bel ~]) ~]
|
||||
::
|
||||
=+ (get-id:auto pos (tufa buf.state.cli))
|
||||
=/ needle=term
|
||||
(fall id '')
|
||||
@ -398,7 +402,7 @@
|
||||
=? moves ?=(^ options)
|
||||
[(tab:sh-out options) moves]
|
||||
=| fxs=(list sole-effect:sole-sur)
|
||||
|-
|
||||
|- ^- (quip card state)
|
||||
?~ to-send
|
||||
[(flop moves) all-state]
|
||||
=^ char state.cli
|
||||
|
Loading…
Reference in New Issue
Block a user