Open antoine-levitt opened 4 years ago
Thanks for the bugreport. I can reproduce this.
It appears that
(setq-local term-scroll-show-maximum-output nil)
provides a workaround, and setting it to t
in the code is then possibly causing this.
I don't recall the original reason for this setting, so I will experiment and see if it breaks anything else.
That's only a partial fix: the empty lines are still there, the scrolling is just different
I would suggest experimenting with the other similar settings in the code.
I was able to reproduce this in a clean term-mode by (setq-local term-prompt-regexp "^(julia|shell|help\\?|(\\d+\\|debug ))>")
. Adding "\n" randomly to that string does not seem to work.
Run julia-repl. Switch to line mode. Press enter repeatedly. Every time enter is pressed, an extra newline is created after the point, with the effect that after a while the screen is filled with newlines. I have a few customization but I don't think any of them is responsible for this. This doesn't happen under term, or in julia-repl in char mode. I'd be happy to PR if pointed to the correct place.