Skip to content

Commit 61036b6

Browse files
Yuri D. LenskyYuri D. Lensky
authored andcommitted
Fix control characters appearing in connection file.
1 parent 49c824d commit 61036b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jupyter-env.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,10 @@ The session can be used to write a connection file, see
165165
(error "`jupyter kernel` failed to show connection file path"))
166166
(and (process-live-p process)
167167
(goto-char (point-min))
168-
(re-search-forward "Connection file: \\(.+\\)\n" nil t)))
168+
(re-search-forward (rx "Connection file: "
169+
(group (+ (not cntrl)))
170+
(* whitespace) line-end)
171+
nil t)))
169172
(let* ((conn-file (concat
170173
(save-match-data
171174
(file-remote-p default-directory))

0 commit comments

Comments
 (0)