Skip to content

Commit eaa0e65

Browse files
committed
Improve the name of the variable checking whether we're dealing with the first
chunk of a result
1 parent 300cbd7 commit eaa0e65

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

cider-interaction.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,10 +667,10 @@ in the buffer."
667667
(defun cider-stdin-handler (&optional buffer)
668668
"Make a stdin response handler for BUFFER."
669669
(nrepl-make-response-handler (or buffer (current-buffer))
670-
(let (after-first-call)
670+
(let (after-first-result-chunk)
671671
(lambda (buffer value)
672-
(cider-repl-emit-result buffer value t (not after-first-call))
673-
(setq after-first-call t)))
672+
(cider-repl-emit-result buffer value t (not after-first-result-chunk))
673+
(setq after-first-result-chunk t)))
674674
(lambda (buffer out)
675675
(cider-repl-emit-stdout buffer out))
676676
(lambda (buffer err)

cider-repl.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -767,21 +767,21 @@ the symbol."
767767
(defun cider-repl-handler (buffer)
768768
"Make an nREPL evaluation handler for the REPL BUFFER."
769769
(nrepl-make-response-handler buffer
770-
(let (after-first-call)
770+
(let (after-first-result-chunk)
771771
(lambda (buffer value)
772-
(cider-repl-emit-result buffer value t (not after-first-call))
773-
(setq after-first-call t)))
772+
(cider-repl-emit-result buffer value t (not after-first-result-chunk))
773+
(setq after-first-result-chunk t)))
774774
(lambda (buffer out)
775775
(cider-repl-emit-stdout buffer out))
776776
(lambda (buffer err)
777777
(cider-repl-emit-stderr buffer err))
778778
(lambda (buffer)
779779
(cider-repl-emit-prompt buffer))
780780
nrepl-err-handler
781-
(let (after-first-call)
781+
(let (after-first-result-chunk)
782782
(lambda (buffer pprint-out)
783-
(cider-repl-emit-result buffer pprint-out nil (not after-first-call))
784-
(setq after-first-call t)))))
783+
(cider-repl-emit-result buffer pprint-out nil (not after-first-result-chunk))
784+
(setq after-first-result-chunk t)))))
785785

786786
(defun cider-repl--send-input (&optional newline)
787787
"Go to the end of the input and send the current input.

0 commit comments

Comments
 (0)