summaryrefslogtreecommitdiff
path: root/alpine/mailpart.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-04-17 20:26:24 -0600
committerEduardo Chappa <chappa@washington.edu>2021-04-17 20:26:24 -0600
commitf6519aa1448e62a757d43e57cabd081ab594dfb1 (patch)
treeb6c26d4c05ab72115b67cce3d415d173aa96fbbd /alpine/mailpart.c
parente3a9185691280e37a20389c8477b1636e4ac9bf9 (diff)
downloadalpine-f6519aa1448e62a757d43e57cabd081ab594dfb1.tar.xz
* Add new hidden feature "Enable Delete Before Writing" that makes Alpine
delete a line before overwriting it. It is meant to work around bugs in terminals that need it. Work in collaboration with professor Martin Trusler.
Diffstat (limited to 'alpine/mailpart.c')
-rw-r--r--alpine/mailpart.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/alpine/mailpart.c b/alpine/mailpart.c
index c5947652..3261c63a 100644
--- a/alpine/mailpart.c
+++ b/alpine/mailpart.c
@@ -1006,6 +1006,8 @@ attachment_screen_updater(struct pine *ps, ATDISP_S *current, ATT_SCREEN_S *scre
if(!(!screen->current || ctmp == screen->current || ctmp == current))
continue;
+ if(F_ON(F_ENABLE_DEL_WHEN_WRITING, ps_global))
+ ClearLine(dline + HEADER_ROWS(ps));
if(ctmp && ctmp->dstring){
char *p = tmp_20k_buf;
int i, col, x = 0, totlen;
@@ -1061,7 +1063,7 @@ attachment_screen_updater(struct pine *ps, ATDISP_S *current, ATT_SCREEN_S *scre
&& !(F_ON(F_FORCE_LOW_SPEED,ps) || ps->low_speed))
EndInverse();
}
- else
+ else if(F_OFF(F_ENABLE_DEL_WHEN_WRITING, ps_global))
ClearLine(dline + HEADER_ROWS(ps));
}