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 657a169 commit bc485f7Copy full SHA for bc485f7
clj-refactor.el
@@ -1968,6 +1968,11 @@ the alias in the project."
1968
(clojure-backward-logical-sexp 1)
1969
(looking-at-p "#")))
1970
1971
+(defun cljr--in-number-p ()
1972
+ (save-excursion
1973
+ (backward-sexp 1)
1974
+ (looking-at-p "[-+0-9]")))
1975
+
1976
;;;###autoload
1977
(defun cljr-slash ()
1978
"Inserts / as normal, but also checks for common namespace shorthands to require.
@@ -1984,6 +1989,7 @@ form."
1984
1989
(not (cider-in-comment-p))
1985
1990
(not (cider-in-string-p))
1986
1991
(not (cljr--in-keyword-sans-alias-p))
1992
+ (not (cljr--in-number-p))
1987
1993
(clojure-find-ns)
1988
1994
(cljr--magic-requires-lookup-alias)))
1995
(let ((short (cl-first aliases)))
0 commit comments