diff scripts/miscellaneous/edit.m @ 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 0d6d0a7c0793
children 95a1ee1cbdf1 fe689210525c
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