more permissive Session.update_options: this is wired to jEdit PropertiesChanged, which may occur before the prover is started;
authorwenzelm
Fri, 04 Apr 2014 22:21:46 +0200
changeset 56412 2dd33da970ea
parent 56411 913dc982ef55
child 56413 2d4d9a5f68ff
more permissive Session.update_options: this is wired to jEdit PropertiesChanged, which may occur before the prover is started;
src/Pure/PIDE/session.scala
--- a/src/Pure/PIDE/session.scala	Fri Apr 04 19:09:56 2014 +0200
+++ b/src/Pure/PIDE/session.scala	Fri Apr 04 22:21:46 2014 +0200
@@ -521,8 +521,8 @@
           receiver.cancel()
           reply(())
 
-        case Update_Options(options) if prover.isDefined =>
-          if (is_ready) {
+        case Update_Options(options) =>
+          if (prover.isDefined && is_ready) {
             prover.get.options(options)
             handle_raw_edits(Document.Blobs.empty, Nil)
           }