# HG changeset patch # User Mike Miller # Date 1334752148 14400 # Node ID e993cbc4b08f3c35e3a4579f09469a6a714fc7d2 # Parent 7ad0762b0f6b8f0abe183591c751ed98ddc9e4fb edit.m: Fix invalid function names in new cc- and m-files * edit.m: Separate the basename of a new file to use as the function name. diff --git a/scripts/miscellaneous/edit.m b/scripts/miscellaneous/edit.m --- a/scripts/miscellaneous/edit.m +++ b/scripts/miscellaneous/edit.m @@ -309,6 +309,7 @@ idx = rindex (file, filesep); if (idx != 0) fileandpath = file; + file = fileandpath(idx+1:end); else fileandpath = fullfile (FUNCTION.HOME, file); endif