From dea2dcd7c24f7a032ea7c68b5546b67315de67f9 Mon Sep 17 00:00:00 2001 From: onelivesleft Date: Wed, 2 Aug 2017 14:52:53 +0100 Subject: [PATCH] await editor.save fixes #11 --- lib/tabletopsimulator-lua.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tabletopsimulator-lua.coffee b/lib/tabletopsimulator-lua.coffee index 2adcb1c..e82bfea 100644 --- a/lib/tabletopsimulator-lua.coffee +++ b/lib/tabletopsimulator-lua.coffee @@ -276,7 +276,7 @@ module.exports = TabletopsimulatorLua = cursors[editor.getPath()] = editor.getCursorBufferPosition() catch error try - editor.save() + await editor.save() catch error # Read all files into JSON object