显示结果时 CIDER REPL 中的多余滚动

Superfluous scrolling in CIDER REPL when showing result

如何配置 CIDER REPL 使其仅在需要显示结果时滚动?

默认情况下,CIDER REPL (0.18.0) 在显示结果时总是将点滚动到 window 的底部,即使有足够的 space 供它使用。

我觉得这很刺耳。我被迫在 window 的底部键入,只是为了防止 "jumps." 理想情况下,本例中不应出现滚动。 (只有当结果长于该点下方的 space 时,该点才应滚动到底部。)

看起来这是由自定义变量控制的 cider-repl-scroll-on-output:

(defcustom cider-repl-scroll-on-output t
  "Controls whether the REPL buffer auto-scrolls on new output.

When set to t (the default), if the REPL buffer contains more lines than the
size of the window, the buffer is automatically re-centered upon completion
of evaluating an expression, so that the bottom line of output is on the
bottom line of the window.

If this is set to nil, no re-centering takes place."
  :type 'boolean
  :group 'cider-repl
  :package-version '(cider . "0.11.0"))

尝试将其值从默认值 t 更改为 nil