Skip to content

Commit

Permalink
Small overlays fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Malabarba committed Jul 13, 2015
1 parent 523a541 commit 36e6b0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cider-debug.el
Expand Up @@ -268,6 +268,10 @@ Each element of LOCALS should be a list of at least two elements."
(defun cider--debug-mode-redisplay ()
"Display the input prompt to the user."
(nrepl-dbind-response cider--debug-mode-response (debug-value input-type locals)
;; The overlay code relies on window boundaries, but point could have been
;; moved outside the window by some other code. Redisplay here to ensure the
;; visible window includes point.
(redisplay)
(when (or (eq cider-debug-prompt t)
(eq cider-debug-prompt 'overlay))
(if (overlayp cider--debug-prompt-overlay)
Expand Down

0 comments on commit 36e6b0a

Please sign in to comment.