Skip to content

Commit 3bdb267

Browse files
Prevent blacken error from being scrolled off screen (Fixes #34)
1 parent 2d75594 commit 3bdb267

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

blacken.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ Show black output, if black exit abnormally and DISPLAY is t."
156156
(mapc 'kill-buffer (list tmpbuf errbuf)))
157157
(error (message "%s" (error-message-string err))
158158
(when display
159+
(with-current-buffer errbuf
160+
(setq-local scroll-conservatively 0))
159161
(pop-to-buffer errbuf))))))
160162

161163
;;;###autoload

0 commit comments

Comments
 (0)