Skip to content

Commit bf5d64f

Browse files
committed
style(leap): whitespace tweaks
1 parent df578c6 commit bf5d64f

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

fnl/leap/main.fnl

+15-8
Original file line numberDiff line numberDiff line change
@@ -624,15 +624,22 @@ char separately.
624624

625625
(exec-user-autocmds :LeapEnter)
626626

627-
(local (in1 ?in2) (if invoked-repeat? (get-repeat-input)
628-
invoked-dot-repeat? (if state.dot_repeat.callback
629-
(values true true)
630-
(values state.dot_repeat.in1
631-
state.dot_repeat.in2))
632-
user-given-targets? (values true true)
627+
(local (in1 ?in2) (if invoked-repeat?
628+
(get-repeat-input)
629+
630+
invoked-dot-repeat?
631+
(if state.dot_repeat.callback
632+
(values true true)
633+
(values state.dot_repeat.in1 state.dot_repeat.in2))
634+
635+
user-given-targets?
636+
(values true true)
637+
638+
(= _state.phase 1)
633639
; This might also return in2 too, if using the
634640
; `next_target` key.
635-
(= _state.phase 1) (get-first-pattern-input) ; REDRAW
641+
(get-first-pattern-input) ; REDRAW
642+
636643
(get-full-pattern-input))) ; REDRAW
637644
(when-not in1
638645
(exit-early))
@@ -735,7 +742,7 @@ char separately.
735742
(if (can-traverse? targets*)
736743
(let [new-idx (inc _state.curr-idx)]
737744
(do-action (. targets* new-idx))
738-
(traversal-loop targets* ; REDRAW (LOOP)
745+
(traversal-loop targets* ; REDRAW (LOOP)
739746
new-idx
740747
{:use-no-labels? (or no-labels-to-use?
741748
_state.repeating-partial-pattern?

0 commit comments

Comments
 (0)