diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-02-04 16:17:46 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-02-05 04:49:19 +0000 |
commit | f57abc71dbb2baf07687ac9c73025f31ee1a7c3e (patch) | |
tree | 049990e4aaa4bd3288a6bcb244290d2d68396d29 /cider-util.el | |
parent | 568263143bed3bfdb15c661d6b0c5b69aa9e972e (diff) |
Make cider-last-sexp behave more like cider--region-for-defun...
Diffstat (limited to 'cider-util.el')
-rw-r--r-- | cider-util.el | 2 |
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) |