From ec53729eedae86772aed9b83dc56c81fe1ccfb4d Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Sat, 9 Dec 2017 18:24:10 +0100 Subject: [PATCH] Fix NvimApi playground --- NvimMsgPack.playground/Contents.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NvimMsgPack.playground/Contents.swift b/NvimMsgPack.playground/Contents.swift index 78338f1a..13cb06e0 100644 --- a/NvimMsgPack.playground/Contents.swift +++ b/NvimMsgPack.playground/Contents.swift @@ -11,7 +11,7 @@ guard let nvim = NvimApi(at: "/tmp/nvim.sock") else { nvim.connect() -if nvim.getMode().value?.dictionaryValue?[.string("blocked")]?.boolValue == true { +if nvim.getMode().value?["blocking"]?.boolValue == true { print("blocked!") } else { print("not blocked!")