Fork me on GitHub
#cider
<
2019-02-24
>
michal09:02:57

before I start digging deeper, anyone here noticed this weird behavior? after jacking-in or connecting to already running nrepl a blank screen shows up (with no usual cider help banner, whatsoever). but seems like it's just incorrectly scrolled, when I press C-l to re-position the buffer everything immediately gets visible - repl prompt, banner, etc.

cichli10:02:06

There were some changes to recentering in the REPL recently – do you have any related config/customisations? Could you share your values for cider-repl-pop-to-buffer-on-connect and scroll-conservatively? (and any other config/customisations related to scrolling if possible?)

michal10:02:50

@U052B0PT3 sure, here are the values:

cider-repl-pop-to-buffer-on-connect is a variable defined in ‘cider-repl.el’.
Its value is t

scroll-conservatively is a variable defined in ‘C source code’.
Its value is 1001

michal11:02:48

I also applied the patch locally but seems like it doesn't help neither for cider-repl-pop-to-buffer-on-connect t nor for display-only values. initial banner is still scrolled up, out of the screen. I will try to dig deeper.

cichli11:02:19

But I’m wondering what’s causing the scrolling not to happen on your env (you have the same config as me)

michal11:02:22

actually, what works for me is, instead of the patch you pointed to, replace it with what recenter function does. that solves my problem (with help banner on and off): (recenter (- -1 (max 0 scroll-margin)))

cichli14:02:39

That might be the best solution. I removed all the recentering because it was impacting performance (and was mostly redundant because of scroll-conservatively), but doing it once at init isn’t a problem at all