diff options
author | Bozhidar Batsov <bozhidar@tradeo.com> | 2014-08-15 17:41:03 +0300 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@tradeo.com> | 2014-08-15 17:41:03 +0300 |
commit | 7bb9b5f8aaa059757528f6e62152b4ab75ffbba9 (patch) | |
tree | 65764fbfc858adf61872db7bafda89c5003c40ce /cider-util.el | |
parent | 4426647b61608dce1790ec28ebb08182a53d350e (diff) |
[#631] Workaround for missing var metadata
Interactively evaluated var definitions lack metadata, so we can't
easily navigate to them. To workaround this we look for definitions
in open Clojure buffers.
Diffstat (limited to 'cider-util.el')
-rw-r--r-- | cider-util.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cider-util.el b/cider-util.el index 2a177f8c..3325c7d6 100644 --- a/cider-util.el +++ b/cider-util.el @@ -160,7 +160,7 @@ forms that start with '(def'." (save-restriction (widen) (goto-char (point-min)) - (re-search-forward (format "(def.* %s " name) + (re-search-forward (format "(def.* %s\\( \\|$\\)" name) nil 'no-error)))) ;;; Strings |