SF.net SVN: geany:[4359] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Sun Oct 25 11:52:48 UTC 2009
Revision: 4359
http://geany.svn.sourceforge.net/geany/?rev=4359&view=rev
Author: eht16
Date: 2009-10-25 11:52:47 +0000 (Sun, 25 Oct 2009)
Log Message:
-----------
Before looking for line and column numbers specified as part of a filename, ensure the file doesn't exist on disk. This allows opening of files like "test:0".
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/main.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-10-25 11:43:21 UTC (rev 4358)
+++ trunk/ChangeLog 2009-10-25 11:52:47 UTC (rev 4359)
@@ -2,7 +2,11 @@
* plugins/saveactions.c:
Fix adding the filetype's default extension when using the
- Instant Save plugin (2885142).
+ Instant Save plugin (closes #2885142).
+ * src/main.c:
+ Before looking for line and column numbers specified as part
+ of a filename, ensure the file doesn't exist on disk. This allows
+ opening of files like "test:0".
2009-10-23 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2009-10-25 11:43:21 UTC (rev 4358)
+++ trunk/src/main.c 2009-10-25 11:52:47 UTC (rev 4359)
@@ -318,6 +318,10 @@
if (! NZV(filename))
return;
+ /* allow to open files like "test:0" */
+ if (g_file_test(filename, G_FILE_TEST_EXISTS))
+ return;
+
len = strlen(filename);
for (i = len - 1; i >= 1; i--)
{
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