summaryrefslogtreecommitdiff
path: root/cider-util.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2016-02-04 16:17:46 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2016-02-05 04:49:19 +0000
commitf57abc71dbb2baf07687ac9c73025f31ee1a7c3e (patch)
tree049990e4aaa4bd3288a6bcb244290d2d68396d29 /cider-util.el
parent568263143bed3bfdb15c661d6b0c5b69aa9e972e (diff)
Make cider-last-sexp behave more like cider--region-for-defun...
Diffstat (limited to 'cider-util.el')
-rw-r--r--cider-util.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/cider-util.el b/cider-util.el
index 70eee4e6..38ced3a7 100644
--- a/cider-util.el
+++ b/cider-util.el
@@ -171,6 +171,8 @@ instead."
(clojure-backward-logical-sexp 1)
(list (point)
(progn (clojure-forward-logical-sexp 1)
+ (skip-chars-forward "[:blank:]")
+ (when (looking-at-p "\n") (forward-char 1))
(point))))))
(defun cider-start-of-next-sexp (&optional skip)