Avoid triggering autocompletion on PHP open tags (closes #3199442)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5724 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
4b2d2b01fb
commit
b5c8b63216
@ -1,3 +1,9 @@
|
||||
2011-04-13 Colomban Wendling <colomban(at)geany(dot)org>
|
||||
|
||||
* src/editor.c:
|
||||
Avoid triggering autocompletion on PHP open tags (closes #3199442).
|
||||
|
||||
|
||||
2011-04-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/document.c:
|
||||
|
@ -2229,6 +2229,11 @@ gboolean editor_start_auto_complete(GeanyEditor *editor, gint pos, gboolean forc
|
||||
}
|
||||
ret = autocomplete_html(sci, root, rootlen);
|
||||
}
|
||||
else if (ft->id == GEANY_FILETYPES_PHP && style == SCE_HPHP_DEFAULT &&
|
||||
startword >= 2 && rootlen == 3 && strcmp(&root[-2], "<?php") == 0)
|
||||
{
|
||||
/* nothing, don't complete PHP open tags */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* force is set when called by keyboard shortcut, otherwise start at the
|
||||
|
Loading…
x
Reference in New Issue
Block a user