summaryrefslogtreecommitdiff
path: root/cider-util.el
diff options
context:
space:
mode:
authorLars Andersen <expez@expez.com>2015-09-18 18:19:16 +0200
committerLars Andersen <expez@expez.com>2015-09-18 18:19:16 +0200
commitbb64d42e549266d62295b5a9e1212e9580d47948 (patch)
treea503acb76f39e167735164d35aa4ffd34a797647 /cider-util.el
parent569b8fc1ee786a5eb4056b5dbc83cb998a15e2f6 (diff)
[Fix #1335] Completion in the repl not working
Diffstat (limited to 'cider-util.el')
-rw-r--r--cider-util.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/cider-util.el b/cider-util.el
index d52ea194..8f4b3995 100644
--- a/cider-util.el
+++ b/cider-util.el
@@ -62,11 +62,13 @@ Setting this to nil removes the fontification restriction."
(defun cider-in-string-p ()
"Return true if point is in a string."
- (nth 3 (parse-partial-sexp (beginning-of-defun) (point))))
+ (let ((beg (save-excursion (beginning-of-defun) (point))))
+ (nth 3 (parse-partial-sexp beg (point)))))
(defun cider-in-comment-p ()
"Return true if point is in a comment."
- (nth 4 (parse-partial-sexp (beginning-of-defun) (point))))
+ (let ((beg (save-excursion (beginning-of-defun) (point))))
+ (nth 4 (parse-partial-sexp beg (point)))))
;;; Text properties