- /* start editing the draft, unless -noedit was given */
- if (!nedit && editfile(&ed, NULL, drft, use, NULL, msgnam, NULL, 1)
- < 0)
- done(1);
+ /* start editing the draft, unless editor is the empty string */
+ if (*ed) {
+ if (editfile(&ed, NULL, drft, use, NULL, msgnam, NULL) <0) {
+ done(1);
+ }
+ }