diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-03-09 06:37:55 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-03-09 06:37:55 +0000 |
commit | 39683eb5ab1e51c69ddf12a9da1ce0402f78380f (patch) | |
tree | d7f296191bfad70c9edf0c6fe10c42b2fe8ccb49 /src/compose.c | |
parent | 57da061f6ef7b0b005066dcf7fd5bd317f394339 (diff) |
added a hidden option "mime_command" for backward compatibility.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1035 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/compose.c')
-rw-r--r-- | src/compose.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/compose.c b/src/compose.c index c6dc645e..7e34a88d 100644 --- a/src/compose.c +++ b/src/compose.c @@ -5440,7 +5440,6 @@ static void compose_exec_ext_editor(Compose *compose) GPid pid; static gchar *def_cmd = "emacs %s"; gchar buf[1024]; - gchar *p; gchar **cmdline; tmp = g_strdup_printf("%s%ctmpmsg-%p.txt", get_tmp_dir(), @@ -5460,10 +5459,9 @@ static void compose_exec_ext_editor(Compose *compose) #endif if (prefs_common.ext_editor_cmd && - (p = strchr(prefs_common.ext_editor_cmd, '%')) && - *(p + 1) == 's' && !strchr(p + 2, '%')) { + str_find_format_times(prefs_common.ext_editor_cmd, 's') == 1) g_snprintf(buf, sizeof(buf), prefs_common.ext_editor_cmd, tmp); - } else { + else { if (prefs_common.ext_editor_cmd) g_warning(_("External editor command line is invalid: `%s'\n"), prefs_common.ext_editor_cmd); |