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 b230432 commit ab081b2Copy full SHA for ab081b2
clj-refactor.el
@@ -1073,7 +1073,8 @@ word test in it and whether the file lives under the test/ directory."
1073
file-name))
1074
1075
(defun cljr--ensure-no-dashes-in-filename ()
1076
- (when (and (not (file-exists-p (buffer-file-name))) ; only new files
+ (when (and (buffer-file-name)
1077
+ (not (file-exists-p (buffer-file-name))) ; only new files
1078
(cljr--dash-in-file-name-p (buffer-file-name)))
1079
(let ((new-name (cljr--maybe-replace-dash-in-file-name (buffer-file-name))))
1080
(rename-buffer new-name)
0 commit comments