Skip to content

Commit 977af2a

Browse files
author
Bozhidar Batsov
committed
Strip text properties from the completion prefix
1 parent ba66955 commit 977af2a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cider-interaction.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,10 @@ added as a prefix to the LOCATION."
641641
"Return a list of completions for STR.
642642
Dispatch to the nREPL \"complete\" op if supported,
643643
otherwise dispatch to internal completion function."
644-
(if (nrepl-op-supported-p "complete")
645-
(cider-completion-complete-op-fn str)
646-
(cider-completion-complete-core-fn str)))
644+
(let ((str (substring-no-properties str)))
645+
(if (nrepl-op-supported-p "complete")
646+
(cider-completion-complete-op-fn str)
647+
(cider-completion-complete-core-fn str))))
647648

648649
(defun cider-complete-at-point ()
649650
"Complete the symbol at point."

0 commit comments

Comments
 (0)