src/Tools/jEdit/patches/favorites
author wenzelm
Thu, 31 Jan 2019 22:02:50 +0100
changeset 69779 a2218981a5d6
child 69838 4419d4d675c3
permissions -rw-r--r--
more accurate _listFiles -- avoid infinite infinite expansion of e.g. "$ISABELLE_HOME";

diff -ru 5.5.0/jEdit/org/gjt/sp/jedit/io/FavoritesVFS.java 5.5.0/jEdit-patched/org/gjt/sp/jedit/io/FavoritesVFS.java
--- 5.5.0/jEdit/org/gjt/sp/jedit/io/FavoritesVFS.java	2018-04-09 01:57:13.000000000 +0200
+++ 5.5.0/jEdit-patched/org/gjt/sp/jedit/io/FavoritesVFS.java	2019-01-31 21:48:47.418367799 +0100
@@ -70,7 +70,8 @@
 	public VFSFile[] _listFiles(Object session, String url,
 		Component comp)
 	{
-		return getFavorites();
+		if (url.equals(PROTOCOL + ':')) return getFavorites();
+		else return null;
 	} //}}}
 
 	//{{{ _getFile() method