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:
parent
03f92c92f5
commit
8153aa2877
@ -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>
|
||||
|
@ -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 ""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
|
||||
|
Loading…
x
Reference in New Issue
Block a user