diff -ru 5.5.0/jEdit/org/gjt/sp/jedit/io/VFSManager.java 5.5.0/jEdit-patched/org/gjt/sp/jedit/io/VFSManager.java
--- 5.5.0/jEdit/org/gjt/sp/jedit/io/VFSManager.java 2018-04-09 01:57:13.000000000 +0200
+++ 5.5.0/jEdit-patched/org/gjt/sp/jedit/io/VFSManager.java 2019-02-24 12:21:25.986736893 +0100
@@ -345,6 +345,18 @@
if(vfsUpdates.size() == 1)
{
+ // slowdown race concerning Buffer.isLoading() status
+ // of Buffer.save() + Buffer.finishSaving()
+ // versus Buffer.load() + "runnable"
+ try
+ {
+ Thread.sleep(100);
+ }
+ catch(InterruptedException ie)
+ {
+ Thread.currentThread().interrupt();
+ }
+
// we were the first to add an update;
// add update sending runnable to AWT
// thread