SF.net SVN: geany:[4413] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Mon Nov 9 19:06:30 UTC 2009


Revision: 4413
          http://geany.svn.sourceforge.net/geany/?rev=4413&view=rev
Author:   eht16
Date:     2009-11-09 19:06:30 +0000 (Mon, 09 Nov 2009)

Log Message:
-----------
Allow autocompletion for HTML entities even within a word.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/editor.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-11-09 18:47:39 UTC (rev 4412)
+++ trunk/ChangeLog	2009-11-09 19:06:30 UTC (rev 4413)
@@ -3,6 +3,8 @@
  * src/vte.c:
    Remove useless comment about applying settings only when libvte.so
    could be loaded which is only displayed *if* libvte.so is loaded.
+ * src/editor.c:
+   Allow autocompletion for HTML entities even within a word.
 
 
 2009-11-07  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c	2009-11-09 18:47:39 UTC (rev 4412)
+++ trunk/src/editor.c	2009-11-09 19:06:30 UTC (rev 4413)
@@ -1946,6 +1946,15 @@
 	{
 		if (autocomplete_check_for_html(ft->id, style))
 		{
+			/* Allow something like ""some text"". The above startword calculation
+			 * only works on words but for HTML entity completion we also want to have completion
+			 * based on '&' within words. */
+			gchar *tmp = strchr(root, '&');
+			if (tmp != NULL)
+			{
+				root = tmp;
+				rootlen = strlen(tmp);
+			}
 			ret = autocomplete_html(sci, root, rootlen);
 		}
 		else


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



More information about the Commits mailing list