Fix broken special case handling when detecting filetypes from a shebang or other special file headers.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3981 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
6097e156cf
commit
9af1f7c78a
@ -1,8 +1,11 @@
|
||||
2009-07-16 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
||||
* src/document.c:
|
||||
Enable file monitoring for files which are written to disk by Geany
|
||||
Enable file monitoring for files which are written to disk by Geany
|
||||
for the first time.
|
||||
* src/filetypes.c:
|
||||
Fix broken special case handling when detecting filetypes from a
|
||||
shebang or other special file headers.
|
||||
|
||||
|
||||
2009-07-16 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
@ -807,9 +807,9 @@ static gboolean shebang_find_and_match_filetype(const gchar *utf8_filename, gint
|
||||
return FALSE;
|
||||
|
||||
va_start(args, first);
|
||||
test = first;
|
||||
while (1)
|
||||
{
|
||||
test = va_arg(args, gint);
|
||||
if (test == -1)
|
||||
break;
|
||||
|
||||
@ -818,6 +818,7 @@ static gboolean shebang_find_and_match_filetype(const gchar *utf8_filename, gint
|
||||
result = TRUE;
|
||||
break;
|
||||
}
|
||||
test = va_arg(args, gint);
|
||||
}
|
||||
va_end(args);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user