X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=remoteglot.pl;h=f83ac4904c3d75e6f422136df1b6ce0c60a2b9b9;hb=23aaaf47160d04f66dbfbe0f4da8ee6e041b7b4d;hp=b9055a64d30616ff945bed8fd59c500ab8eeb62c;hpb=4cfab279dffebe9128e15172d25350b942781e5e;p=remoteglot diff --git a/remoteglot.pl b/remoteglot.pl index b9055a6..f83ac49 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -1072,7 +1072,7 @@ sub output_json { } if (exists($pos_calculating->{'history'}) && - defined($remoteglotconf::json_history_dir)) { + defined($remoteglotconf::json_history_dir) && defined($json->{'engine'}{name})) { my $id = id_for_pos($pos_calculating); my $filename = $remoteglotconf::json_history_dir . "/" . $id . ".json";