diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2001-06-03 21:17:35 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2001-06-03 21:17:35 -0400 |
commit | d1349dd61e0c9248ec9be3edaa37a67952e44300 (patch) | |
tree | cc38442efa38ebd0cbb683866bc0ac8caf066a69 /src/LYNews.c | |
parent | 8c68f693cc82e6650afff52fe478c0ccde4bc015 (diff) | |
download | lynx-snapshots-d1349dd61e0c9248ec9be3edaa37a67952e44300.tar.gz |
snapshot of project "lynx", label v2-8-4dev_21
Diffstat (limited to 'src/LYNews.c')
-rw-r--r-- | src/LYNews.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/LYNews.c b/src/LYNews.c index 72309078..0755d17f 100644 --- a/src/LYNews.c +++ b/src/LYNews.c @@ -14,6 +14,7 @@ #include <GridText.h> #include <LYCharSets.h> #include <LYNews.h> +#include <LYEdit.h> #include <LYGlobalDefs.h> @@ -99,7 +100,6 @@ PUBLIC char *LYNewsPost ARGS2( BOOLEAN, followup) { char user_input[1024]; - char *command = NULL; char CJKinput[1024]; char *cp = NULL; CONST char *kp = NULL; @@ -342,10 +342,6 @@ PUBLIC char *LYNewsPost ARGS2( * Have the user create the message body. */ if (!no_editor && editor && *editor != '\0') { - /* - * Use an external editor. - */ - char *editor_arg = ""; if (followup && nhist > 0) { /* @@ -372,19 +368,7 @@ PUBLIC char *LYNewsPost ARGS2( /* * Spawn the user's editor on the news file. */ - if (strstr(editor, "pico")) { - editor_arg = " -t"; /* No prompt for filename to use */ - } - HTSprintf0(&command, "%s%s %s", editor, editor_arg, my_tempfile); - _statusline(SPAWNING_EDITOR_FOR_NEWS); - stop_curses(); - if (LYSystem(command)) { - start_curses(); - HTAlert(ERROR_SPAWNING_EDITOR); - } else { - start_curses(); - } - FREE(command); + edit_temporary_file(my_tempfile, "", SPAWNING_EDITOR_FOR_NEWS); nonempty = message_has_content(my_tempfile, &nonspaces); |