SF.net SVN: geany: [721] trunk/src/utils.c

eht16 at users.sourceforge.net eht16 at xxxxx
Tue Aug 15 12:33:02 UTC 2006


Revision: 721
Author:   eht16
Date:     2006-08-15 05:32:56 -0700 (Tue, 15 Aug 2006)
ViewCVS:  http://svn.sourceforge.net/geany/?rev=721&view=rev

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

Modified Paths:
--------------
    trunk/src/utils.c
Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c	2006-08-15 12:32:27 UTC (rev 720)
+++ trunk/src/utils.c	2006-08-15 12:32:56 UTC (rev 721)
@@ -1930,9 +1930,9 @@
 	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)


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