We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54b4aa3 commit df8757fCopy full SHA for df8757f
1 file changed
julia-repl.el
@@ -520,8 +520,10 @@ this with a prefix argument ARG."
520
(defun julia-repl-cd ()
521
"Change directory to the directory of the current buffer (if applicable)."
522
(interactive)
523
- (if-let ((filename (buffer-file-name)))
524
- (julia-repl--send-string (concat "cd(\"" (file-name-directory filename) "\")"))
+ (if-let ((directory (file-name-directory (buffer-file-name))))
+ (progn
525
+ (julia-repl--send-string (concat "cd(\"" directory "\")"))
526
+ (with-current-buffer (julia-repl-inferior-buffer) (cd directory)))
527
(warn "buffer not associated with a file")))
528
529
(defun julia-repl-activate-parent (arg)
0 commit comments