diff options
author | Eduardo Chappa <chappa@washington.edu> | 2013-08-28 22:31:55 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2013-08-28 22:31:55 -0600 |
commit | 9e9955aecf65dfbf80bb32c70feec4acadff2a66 (patch) | |
tree | 6ba472446445f48faeaeef730e8ff02e1371bbd9 /pico/basic.c | |
parent | 93ff1074e538a1d60a04d79a3628d598d301e02e (diff) | |
download | alpine-9e9955aecf65dfbf80bb32c70feec4acadff2a66.tar.xz |
* Tune for help formatting in pine.hlp
* Pico: Justification works without need to define a quote string, it
allows justification of blocks indented with spaces.
Diffstat (limited to 'pico/basic.c')
-rw-r--r-- | pico/basic.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/pico/basic.c b/pico/basic.c index 49b04bd6..189d396e 100644 --- a/pico/basic.c +++ b/pico/basic.c @@ -304,16 +304,14 @@ gotobop(int f, int n) * PLUS: if there's a quote string, a quoted-to-non-quoted * line transition. */ - quoted = glo_quote_str ? quote_match(glo_quote_str, curwp->w_dotp, qstr, NLINE) : 0; + quoted = quote_match(glo_quote_str, curwp->w_dotp, qstr, NLINE); qlen = quoted ? ucs4_strlen(qstr) : 0; while(lback(curwp->w_dotp) != curbp->b_linep && llength(lback(curwp->w_dotp)) > qlen - && (glo_quote_str - ? (quoted == quote_match(glo_quote_str, + && quoted == quote_match(glo_quote_str, lback(curwp->w_dotp), qstr2, NLINE) - && !ucs4_strcmp(qstr, qstr2)) - : 1) + && !ucs4_strcmp(qstr, qstr2) && lgetc(curwp->w_dotp, qlen).c != TAB && lgetc(curwp->w_dotp, qlen).c != ' ') curwp->w_dotp = lback(curwp->w_dotp); @@ -373,19 +371,16 @@ gotoeop(int f, int n) * PLUS: if there's a quote string, a quoted-to-non-quoted * line transition. */ - quoted = glo_quote_str - ? quote_match(glo_quote_str, - curwp->w_dotp, qstr, NLINE) : 0; + quoted = quote_match(glo_quote_str, + curwp->w_dotp, qstr, NLINE); qlen = quoted ? ucs4_strlen(qstr) : 0; while(curwp->w_dotp != curbp->b_linep && llength(lforw(curwp->w_dotp)) > qlen - && (glo_quote_str - ? (quoted == quote_match(glo_quote_str, + && (quoted == quote_match(glo_quote_str, lforw(curwp->w_dotp), qstr2, NLINE) && !ucs4_strcmp(qstr, qstr2)) - : 1) && lgetc(lforw(curwp->w_dotp), qlen).c != TAB && lgetc(lforw(curwp->w_dotp), qlen).c != ' ') curwp->w_dotp = lforw(curwp->w_dotp); |