Emacs did not use tabs in indenting mu-maildir.c

This commit is contained in:
Juan Jose Garcia-Ripoll 2020-10-16 19:34:55 +02:00
parent dd14ba64dd
commit fbad4760a4
1 changed files with 26 additions and 26 deletions

View File

@ -782,21 +782,21 @@ get_new_basename (void)
static char*
find_path_separator(const char *path)
{
const char *cur;
for (cur = &path[strlen(path)-1]; cur > path; --cur) {
if ((*cur == ':' || *cur == '!' || *cur == ';') &&
(cur[1] == '2' && cur[2] == ',')) {
return (char*)cur;
}
}
return NULL;
const char *cur;
for (cur = &path[strlen(path)-1]; cur > path; --cur) {
if ((*cur == ':' || *cur == '!' || *cur == ';') &&
(cur[1] == '2' && cur[2] == ',')) {
return (char*)cur;
}
}
return NULL;
}
char*
mu_maildir_get_new_path (const char *oldpath, const char *new_mdir,
MuFlags newflags, gboolean new_name)
{
char *mfile, *mdir, *custom_flags, *cur, *newpath, flags_sep = ':';
char *mfile, *mdir, *custom_flags, *cur, *newpath, flags_sep = ':';
g_return_val_if_fail (oldpath, NULL);
@ -811,23 +811,23 @@ mu_maildir_get_new_path (const char *oldpath, const char *new_mdir,
if (new_name) {
mfile = get_new_basename ();
cur = find_path_separator (oldpath);
if (cur) {
/* preserve the existing flags separator
* in the new file name */
flags_sep = *cur;
}
} else {
mfile = g_path_get_basename (oldpath);
cur = find_path_separator (mfile);
if (cur) {
/* get the custom flags (if any) */
custom_flags = mu_flags_custom_from_str (cur + 3);
/* preserve the existing flags separator
* in the new file name */
flags_sep = *cur;
cur[0] = '\0'; /* strip the flags */
}
cur = find_path_separator (oldpath);
if (cur) {
/* preserve the existing flags separator
* in the new file name */
flags_sep = *cur;
}
} else {
mfile = g_path_get_basename (oldpath);
cur = find_path_separator (mfile);
if (cur) {
/* get the custom flags (if any) */
custom_flags = mu_flags_custom_from_str (cur + 3);
/* preserve the existing flags separator
* in the new file name */
flags_sep = *cur;
cur[0] = '\0'; /* strip the flags */
}
}
newpath = get_new_path (new_mdir ? new_mdir : mdir,