Allow autocompletion for HTML entities even within a word.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4413 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-11-09 19:06:30 +00:00
parent 03f92c92f5
commit 8153aa2877
2 changed files with 11 additions and 0 deletions

View File

@ -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>

View File

@ -1946,6 +1946,15 @@ gboolean editor_start_auto_complete(GeanyEditor *editor, gint pos, gboolean forc
{
if (autocomplete_check_for_html(ft->id, style))
{
/* Allow something like "&quot;some text&quot;". 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