summaryrefslogtreecommitdiff
path: root/pico/pico.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2013-05-31 17:16:44 -0600
committerEduardo Chappa <chappa@washington.edu>2013-05-31 17:16:44 -0600
commita46157ba61f2c65f88b42abb31db60c4a714f87b (patch)
treee37bc41ad2f57b3fd2bad310576cc155a58ca6b7 /pico/pico.c
parent81e994d7907f850506ddc248f84761a54995e58c (diff)
downloadalpine-a46157ba61f2c65f88b42abb31db60c4a714f87b.tar.xz
* somehow all.patch got here. Reversing.
Diffstat (limited to 'pico/pico.c')
-rw-r--r--pico/pico.c37
1 files changed, 1 insertions, 36 deletions
diff --git a/pico/pico.c b/pico/pico.c
index 0a47d7f9..166a3d3d 100644
--- a/pico/pico.c
+++ b/pico/pico.c
@@ -138,15 +138,6 @@ pico(PICO *pm)
pico_all_done = 0;
km_popped = 0;
- if (pm->auto_cmds){
- int i;
-#define CTRL_X 24
- for (i = 0; pm->auto_cmds[i]; i++);
- if ((i > 1) && (pm->auto_cmds[i - 2] == CTRL_X) &&
- ((pm->auto_cmds[i - 1] == 'y') || (pm->auto_cmds[i-1] == 'Y')))
- sendnow++;
- }
-
if(!vtinit()) /* Init Displays. */
return(COMP_CANCEL);
@@ -647,19 +638,12 @@ abort_composer(int f, int n)
result = "";
Pmaster->arm_winch_cleanup++;
- Pmaster->onctrlc++;
if(Pmaster->canceltest){
if(((Pmaster->pine_flags & MDHDRONLY) && !any_header_changes())
|| (result = (*Pmaster->canceltest)(redraw_pico_for_callback))){
+ pico_all_done = COMP_CANCEL;
emlwrite(result, NULL);
Pmaster->arm_winch_cleanup--;
- if(Pmaster->curpos[0]){
- curwp->w_flag |= WFMODE; /* and modeline so we */
- sgarbk = TRUE; /* redraw the keymenu */
- pclear(term.t_nrow - 1, term.t_nrow + 1);
- return(FALSE);
- }
- pico_all_done = COMP_CANCEL;
return(TRUE);
}
else{
@@ -688,12 +672,6 @@ abort_composer(int f, int n)
emlwrite(_("\007Cancel Cancelled"), NULL);
break;
- case COUNT:
- showcpos(1,0);
- emlwrite(Pmaster->curpos, NULL);
- Pmaster->onctrlc--;
- break;
-
default:
mlerase();
}
@@ -736,19 +714,6 @@ wquit(int f, int n)
return(FALSE);
}
- /* When we send a message using the command line we are going to
- ignore if the user wants to spell check, we assume he already
- did */
- if (sendnow){
- ret = (*Pmaster->exittest)(Pmaster->headents,
- redraw_pico_for_callback,
- Pmaster->allow_flowed_text,
- &result);
- if (!ret)
- pico_all_done = COMP_EXIT;
- return(result ? FALSE : TRUE);
- }
-
#ifdef SPELLER
if(Pmaster->always_spell_check)
if(spell(0, 0) == -1)