changeset 18061:832ecfda1d3c

edit.m: Respond correctly to either file separator (bug #40726). * edit.m: Test for either file separator when necessary.
author Rik <rik@octave.org>
date Tue, 03 Dec 2013 12:30:50 -0800
parents 427412d40f1a
children 1e9cb13faa7a
files scripts/miscellaneous/edit.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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