From 33f06668d519b4f09b9b1256ae405c6702f8edbb Mon Sep 17 00:00:00 2001 From: myk002 Date: Thu, 3 Mar 2022 14:00:44 -0800 Subject: [PATCH] ensure we don't crash when tiletypes-here is run from the commandline --- plugins/tiletypes.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/tiletypes.cpp b/plugins/tiletypes.cpp index 1916f62a4..7f39ddd4e 100644 --- a/plugins/tiletypes.cpp +++ b/plugins/tiletypes.cpp @@ -1093,6 +1093,8 @@ static bool get_options(color_ostream &out, command_result df_tiletypes_here (color_ostream &out, vector & parameters) { + CoreSuspender suspend; + tiletypes_options opts; if (!get_options(out, opts, parameters) || opts.help) { @@ -1112,6 +1114,8 @@ command_result df_tiletypes_here (color_ostream &out, vector & paramete command_result df_tiletypes_here_point (color_ostream &out, vector & parameters) { + CoreSuspender suspend; + tiletypes_options opts; if (!get_options(out, opts, parameters) || opts.help) {