Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit fed0c38

Browse files
only apply regexp-replace when str is non-nil, otherwise emacs raises errors
1 parent c26d496 commit fed0c38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lsp-python-ms.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ Optionally add the WORKSPACE to the python search list."
112112
(let ((rx " "))
113113
(when (eq system-type 'windows-nt)
114114
(setq rx (concat rx "\\|\r")))
115-
(replace-regexp-in-string rx " " str)))
115+
(when str
116+
(replace-regexp-in-string rx " " str))))
116117

117118
(defun lsp-python-ms--language-server-started-callback (workspace _params)
118119
"Handle the python/languageServerStarted message.

0 commit comments

Comments
 (0)