Skip to content

Commit

Permalink
[Fix #1320] Update cider-repl--state-handler with the new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Malabarba committed Sep 16, 2015
1 parent d37e519 commit 0dbaad3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cider-repl.el
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ via `cider-current-connection'.")
"Handle the server STATE.
Currently, this is only used to keep `cider-repl-type' updated."
(with-demoted-errors "Error in `cider-repl--state-handler': %s"
(-when-let (state (nrepl-dict-get response "state"))
(nrepl-dbind-response state (repl-type changed-namespaces)
(when (member "state" (nrepl-dict-get response "status"))
(nrepl-dbind-response response (repl-type changed-namespaces)
(setq cider-repl-type repl-type)
(unless (nrepl-dict-empty-p changed-namespaces)
(setq cider-repl-ns-cache (nrepl-dict-merge cider-repl-ns-cache changed-namespaces))
Expand Down

0 comments on commit 0dbaad3

Please sign in to comment.