diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2015-11-03 19:21:45 +0200 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2015-11-03 19:21:45 +0200 |
commit | a4b34d8c361f087c6b726166310930f0cb973a0a (patch) | |
tree | 95b4a9a1077d7db92f26a05ca51366cee861ce21 /cider-common.el | |
parent | da1ca340f1e9ac8eb5ba40b61f0907830e30ff78 (diff) |
[Fix #1392] Track definitions made in the REPL
Diffstat (limited to 'cider-common.el')
-rw-r--r-- | cider-common.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cider-common.el b/cider-common.el index 0b47ada1..87e58ac8 100644 --- a/cider-common.el +++ b/cider-common.el @@ -79,9 +79,12 @@ OTHER-WINDOW is passed to `cider-jamp-to'." (let* ((line (nrepl-dict-get info "line")) (file (nrepl-dict-get info "file")) (name (nrepl-dict-get info "name")) - (buffer (and file - (not (cider--tooling-file-p file)) - (cider-find-file file)))) + ;; the filename might actually be a REPL buffer name + (buffer (if (string-prefix-p "*" file) + file + (and file + (not (cider--tooling-file-p file)) + (cider-find-file file))))) (if buffer (cider-jump-to buffer (if line (cons line nil) name) other-window) (error "No source location")))) |