Skip to content

Commit 00cbbf6

Browse files
committed
Make sure there's an active connection in a few more commands
1 parent 24d5ee2 commit 00cbbf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cider-interaction.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ that a normal reload would not otherwise recover from. The trade-off of
13671367
clearing is that stale code from any deleted files may not be completely
13681368
unloaded."
13691369
(interactive "p")
1370+
(cider-ensure-connected)
13701371
(cider-ensure-op-supported "refresh")
13711372
(let ((clear? (member mode '(clear 16)))
13721373
(refresh-all? (member mode '(refresh-all 4))))
@@ -1501,6 +1502,7 @@ the string contents of the region into a formatted string."
15011502
(defun cider-format-edn-region (start end)
15021503
"Format the EDN data in the current region."
15031504
(interactive "r")
1505+
(cider-ensure-connected)
15041506
(let* ((start-column (save-excursion (goto-char start) (current-column)))
15051507
(right-margin (- fill-column start-column)))
15061508
(cider--format-region start end

0 commit comments

Comments
 (0)