Ignore directories passed on the command-line (based on patch by
Erik de Castro Lopo, thanks). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5226 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
0eca783f97
commit
55ebfc0d61
@ -1,3 +1,10 @@
|
||||
2010-09-14 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/main.c:
|
||||
Ignore directories passed on the command-line (based on patch by
|
||||
Erik de Castro Lopo, thanks).
|
||||
|
||||
|
||||
2010-09-13 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/interface.c, src/keybindings.c, src/ui_utils.c, geany.glade:
|
||||
|
@ -794,6 +794,13 @@ static gboolean open_cl_files(gint argc, gchar **argv)
|
||||
for (i = 1; i < argc; i++)
|
||||
{
|
||||
gchar *filename = main_get_argv_filename(argv[i]);
|
||||
|
||||
if (g_file_test(filename, G_FILE_TEST_IS_DIR))
|
||||
{
|
||||
g_free(filename);
|
||||
continue;
|
||||
}
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
/* It seems argv elements are encoded in CP1252 on a German Windows */
|
||||
setptr(filename, g_locale_to_utf8(filename, -1, NULL, NULL, NULL));
|
||||
|
Loading…
x
Reference in New Issue
Block a user