[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-cvs
Subject:    [ jEdit-commits ] SF.net SVN: jedit:[17918]
From:       shlomy () users ! sourceforge ! net
Date:       2010-05-29 13:07:50
Message-ID: E1OILlW-0006Ik-2c () sfp-svn-3 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 17918
          http://jedit.svn.sourceforge.net/jedit/?rev=17918&view=rev
Author:   shlomy
Date:     2010-05-29 13:07:49 +0000 (Sat, 29 May 2010)

Log Message:
-----------
Fixed the completion query.

Modified Paths:
--------------
    plugins/CtagsInterface/trunk/src/ctagsinterface/jedit/TagCompletion.java

Modified: plugins/CtagsInterface/trunk/src/ctagsinterface/jedit/TagCompletion.java
===================================================================
--- plugins/CtagsInterface/trunk/src/ctagsinterface/jedit/TagCompletion.java	2010-05-29 \
                05:51:27 UTC (rev 17917)
+++ plugins/CtagsInterface/trunk/src/ctagsinterface/jedit/TagCompletion.java	2010-05-29 \
13:07:49 UTC (rev 17918) @@ -151,7 +151,9 @@
 	public Vector<Tag> getCompletions()
 	{
 		String s = CtagsInterfacePlugin.getScopedTagQuery(view);
-		s = s + " AND " + TagIndex._NAME_FLD + ":" + prefix + "*";
+		if (! s.isEmpty())
+			s = s + " AND ";
+		s = s + TagIndex._NAME_FLD + ":" + prefix + "*";
 		return CtagsInterfacePlugin.query(s);
 	}
 	public String createAbbrev(String signature)


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

------------------------------------------------------------------------------

_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic