# HG changeset patch # User Rik # Date 1386102650 28800 # Node ID 832ecfda1d3cf9743d201c67b893b3060f0ada1f # Parent 427412d40f1aaab8f71e846d3d81c80e6afb9600 edit.m: Respond correctly to either file separator (bug #40726). * edit.m: Test for either file separator when necessary. diff -r 427412d40f1a -r 832ecfda1d3c scripts/miscellaneous/edit.m --- a/scripts/miscellaneous/edit.m Tue Dec 03 10:49:01 2013 -0800 +++ b/scripts/miscellaneous/edit.m Tue Dec 03 12:30:50 2013 -0800 @@ -284,7 +284,7 @@ endif ## If the file includes a path, it may be an overloaded function. - if (! index (file, "@") && index (file, filesep)) + if (! index (file, "@") && strchr (file, '/\')) ## No "@" at the beginning of the file, add to the list. numfiles = numel (filelist); for n = 1:numfiles