[geany/geany] e5245e: Increase the number of lines where filename is replaced upon save as

Colomban Wendling git-noreply at xxxxx
Tue Mar 5 22:58:04 UTC 2013


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 05 Mar 2013 22:58:04 UTC
Commit:      e5245eb053cd02b72827de41f7509512fcbc551c
             https://github.com/geany/geany/commit/e5245eb053cd02b72827de41f7509512fcbc551c

Log Message:
-----------
Increase the number of lines where filename is replaced upon save as

Search the first 4 lines (instead of 3) for Python templates support.


Modified Paths:
--------------
    doc/geany.txt
    src/document.c

Modified: doc/geany.txt
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -4782,7 +4782,7 @@ geanyversion   The actual Geany version, e.g.                file templates, fil
 
 filename       The filename of the current file.             file header, snippets, file
                For new files, it's only replaced when        templates.
-               first saving if found on the first 3 lines
+               first saving if found on the first 4 lines
                of the file.
 
 project        The current project's name, if any.           file header, snippets, file templates.


Modified: src/document.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -1372,7 +1372,7 @@ static void replace_header_filename(GeanyDocument *doc)
 
 	/* only search the first 3 lines */
 	ttf.chrg.cpMin = 0;
-	ttf.chrg.cpMax = sci_get_position_from_line(doc->editor->sci, 3);
+	ttf.chrg.cpMax = sci_get_position_from_line(doc->editor->sci, 4);
 	ttf.lpstrText = filebase;
 
 	if (search_find_text(doc->editor->sci, SCFIND_MATCHCASE | SCFIND_REGEXP, &ttf) != -1)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list