From 8b18de7d89b67af2ca53d2a7fa52a144aa9fd5c1 Mon Sep 17 00:00:00 2001 From: David Diaz Date: Mon, 30 Apr 2018 19:37:23 -0600 Subject: [PATCH] Updated the code to make sure it supports newer versions of Beau. --- beau.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/beau.py b/beau.py index c8f6def..fe17426 100644 --- a/beau.py +++ b/beau.py @@ -41,7 +41,7 @@ class BeauCommand(sublime_plugin.TextCommand): return self.inThread( - [self.path, '-c', active_view.file_name(), 'list', '--no-format'], + [self.path, 'list', '-c', active_view.file_name(), '--no-format'], self.listFetched ) @@ -96,11 +96,14 @@ class BeauCommand(sublime_plugin.TextCommand): results_view.set_syntax_file(SYNTAX) self.inThread( - [self.path, '-c', active_view.file_name(), 'request', alias, '--no-format'], + [self.path, 'request', alias,'-c', active_view.file_name(), '--no-format'], onComplete=handleResult ) def autoindent(self, obj): + if not obj.strip(): + return 'Empty'; + parsed = json.loads(obj) return json.dumps( parsed,