Search the first three lines when replacing the filename in a template(for PHP).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@721 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2006-08-15 12:32:56 +00:00
parent 55c6eca9c8
commit b733509867

View File

@ -1930,9 +1930,9 @@ void utils_replace_filename(gint idx)
filebase = g_strconcat(GEANY_STRING_UNTITLED, ".", (doc_list[idx].file_type)->extension, NULL);
filename = g_path_get_basename(doc_list[idx].file_name);
// only search the first 2 lines
// only search the first 3 lines
ttf.chrg.cpMin = 0;
ttf.chrg.cpMax = sci_get_position_from_line(doc_list[idx].sci, 2);
ttf.chrg.cpMax = sci_get_position_from_line(doc_list[idx].sci, 3);
ttf.lpstrText = (gchar*)filebase;
if (sci_find_text(doc_list[idx].sci, SCFIND_MATCHCASE, &ttf) != -1)