diff options
Diffstat (limited to 'cider-common.el')
-rw-r--r-- | cider-common.el | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cider-common.el b/cider-common.el index a12a57a7..2073c065 100644 --- a/cider-common.el +++ b/cider-common.el @@ -127,14 +127,10 @@ otherwise, nil." name)) (defvar cider-from-nrepl-filename-function - (if (eq system-type 'cygwin) - (lambda (resource) - (let ((fixed-resource (replace-regexp-in-string "^/" "" resource))) - (replace-regexp-in-string - "\n" - "" - (shell-command-to-string (format "cygpath --unix '%s'" fixed-resource))))) - #'identity) + (with-no-warnings + (if (eq system-type 'cygwin) + #'cygwin-convert-file-name-from-windows + #'identity)) "Function to translate nREPL namestrings to Emacs filenames.") (defcustom cider-prefer-local-resources nil |