Kaydet (Commit) 9af1f7c7 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fix broken special case handling when detecting filetypes from a shebang or…

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
üst 6097e156
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment