Skip to content

Commit

Permalink
Explicitly specify frame edges
Browse files Browse the repository at this point in the history
In an attempt to work around GH-15
  • Loading branch information
swsnr committed Jan 15, 2016
1 parent ca38424 commit fe5ad04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flycheck-pos-tip.el
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ messages on TTY frames if `flycheck-pos-tip-mode' is active."
(when errors
(if (display-graphic-p)
(let ((message (mapconcat #'flycheck-error-format-message-and-id
errors "\n\n")))
errors "\n\n"))
(edges (window-pixel-edges)))
(pos-tip-show message nil nil nil flycheck-pos-tip-timeout
nil nil
nil (cons (car edges) (cadr edges))
;; Add a little offset to the tooltip to move it away
;; from the corresponding text in the buffer. We
;; explicitly take the line height into account because
Expand Down

0 comments on commit fe5ad04

Please sign in to comment.