SBYTES (decoded_homedir))
&& IS_DIRECTORY_SEP (SREF (dir, SBYTES (decoded_homedir))))
{
- dir = Fsubstring (dir, make_number (SCHARS (decoded_homedir) + 1), Qnil);
+ dir = Fsubstring (dir, make_number (SCHARS (decoded_homedir)), Qnil);
dir = concat2 (build_string ("~"), dir);
}
/* Likewise for default_filename. */
{
default_filename
= Fsubstring (default_filename,
- make_number (SCHARS (decoded_homedir) + 1), Qnil);
+ make_number (SCHARS (decoded_homedir)), Qnil);
default_filename = concat2 (build_string ("~"), default_filename);
}
if (!NILP (default_filename))