Skip to content

Commit c1d6924

Browse files
resyntax-ci[bot]rfindler
authored andcommitted
Fix 1 occurrence of nested-when-to-compound-when
Nested `when` expressions can be merged into a single compound `when` expression.
1 parent 1657b2a commit c1d6924

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

drracket-core-lib/drracket/private/frame.rkt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,11 @@
334334
(mixin (frame:standard-menus<%>) (drracket:frame:basics<%>)
335335

336336
(define/override (on-subwindow-focus win on?)
337-
(when the-keybindings-frame
338-
(when on?
339-
(send the-keybindings-frame set-bindings
340-
(if (can-show-keybindings?)
341-
(get-keybindings-to-show)
342-
'())))))
337+
(when (and the-keybindings-frame on?)
338+
(send the-keybindings-frame set-bindings
339+
(if (can-show-keybindings?)
340+
(get-keybindings-to-show)
341+
'()))))
343342

344343
(define/override (on-subwindow-char receiver event)
345344
(define user-key? (send (keymap:get-user)

0 commit comments

Comments
 (0)