Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
18060:427412d40f1a | 18061:832ecfda1d3c |
---|---|
282 filelist(end+1) = [file ".cc"]; | 282 filelist(end+1) = [file ".cc"]; |
283 endif | 283 endif |
284 endif | 284 endif |
285 | 285 |
286 ## If the file includes a path, it may be an overloaded function. | 286 ## If the file includes a path, it may be an overloaded function. |
287 if (! index (file, "@") && index (file, filesep)) | 287 if (! index (file, "@") && strchr (file, '/\')) |
288 ## No "@" at the beginning of the file, add to the list. | 288 ## No "@" at the beginning of the file, add to the list. |
289 numfiles = numel (filelist); | 289 numfiles = numel (filelist); |
290 for n = 1:numfiles | 290 for n = 1:numfiles |
291 filelist(n+numfiles) = ["@" filelist{n}]; | 291 filelist(n+numfiles) = ["@" filelist{n}]; |
292 endfor | 292 endfor |