We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d14ff5 commit df95070Copy full SHA for df95070
inf-clojure.el
@@ -1326,9 +1326,11 @@ you might want to use in your customization."
1326
(save-excursion
1327
(let ((end (point)))
1328
(skip-chars-backward (concat "^" inf-clojure-clojure-expr-break-chars))
1329
- (let ((first-char (substring-no-properties (thing-at-point 'symbol) 0 1)))
1330
- (when (string-match-p "[^0-9]" first-char)
1331
- (cons (point) end)))))))
+ (let ((chars (thing-at-point 'symbol)))
+ (when (> (length chars) 0)
+ (let ((first-char (substring-no-properties chars 0 1)))
1332
+ (when (string-match-p "[^0-9]" first-char)
1333
+ (cons (point) end)))))))))
1334
1335
(defun inf-clojure-completion-expr-at-point ()
1336
"Return expression at point to complete."
0 commit comments