Skip to content

Commit

Permalink
Don’t show message when minibuffer is active
Browse files Browse the repository at this point in the history
This messes up minibuffer editing when active. We only want a message
to show up when there is no active minibuffer window.
  • Loading branch information
matthewbauer committed Jun 6, 2019
1 parent 4aa8875 commit b717e46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haskell-string.el
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ If the identifier is not qualified return it unchanged."
"Echo STR in mini-buffer.
Given string is shrinken to single line, multiple lines just
disturbs the programmer."
(message "%s" (haskell-mode-one-line str (frame-width))))
(unless (active-minibuffer-window)
(message "%s" (haskell-mode-one-line str (frame-width)))))

(defun haskell-mode-one-line (str &optional width)
"Try to fit STR as much as possible on one line according to given WIDTH."
Expand Down

0 comments on commit b717e46

Please sign in to comment.