Skip to content

Commit c02b1cc

Browse files
committed
Also fix move-here for temp buffers
1 parent 0feb6c3 commit c02b1cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cider-debug.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,9 +700,9 @@ TARGET is inside it. The returned list is suitable for use in
700700
(user-error "`cider-debug-move-here' only makes sense during a debug session"))
701701
(let ((here (point)))
702702
(nrepl-dbind-response cider--debug-mode-response (line column)
703-
(if (and line column)
703+
(if (and line column (buffer-file-name))
704704
(progn ;; Get to the proper line & column in the file
705-
(forward-line (- line 1 (line-number-at-pos)))
705+
(forward-line (1- (- line (line-number-at-pos))))
706706
(move-to-column column))
707707
(beginning-of-defun))
708708
;; Is HERE inside the sexp being debugged?

0 commit comments

Comments
 (0)