[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] add an "atends" configuration setting
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [PATCH] add an "atends" configuration setting |
Date: |
Tue, 1 May 2018 17:50:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
Op 30-04-18 om 22:17 schreef address@hidden:
> When towordends is set and Ctrl+Right or Shift+Ctrl+Right is pressed,
> nano will stop at the ends of words instead of their beginnings.
Thanks. Looks better.
Five things, though:
1) Your webmailer mutilates the patch: it hardwraps long lines and
changes leading spaces to double spaces. Please send patches as
an attachment, or better: with git send-email.
2) The changed Ctrl+Right behavior should also occur at the prompt.
3) The intermediate seen_space variable is superfluous for the new
code. This part can be reduced to:
if (is_word_mbchar(openfile->current->data + openfile->current_x,
allow_punct))
seen_word = true;
else if (seen_word)
break;
4) If the option is not present in tiny nano, then the code should
be neither. For this, it will be easier to invert the condition of
the 'if', so that the new (ifndeffed) code comes first. (Warnings
about an unused parameter in the tiny version are acceptable.)
5) I don't like '--towordends' either. In my ears '--afterends'
sounds better, because even just the word "after" already says
enough. And it leaves it open whether this option will apply to
Ctrl+Down too later on.
Benno
signature.asc
Description: OpenPGP digital signature
- Re: [Nano-devel] [PATCH] add an "atends" configuration setting,
Benno Schulenberg <=
- Re: [Nano-devel] [PATCH] add an "atends" configuration setting, markweston, 2018/05/07
- Re: [Nano-devel] [PATCH] add an "atends" configuration setting, markweston, 2018/05/07
- Re: [Nano-devel] [PATCH] add an "atends" configuration setting, Benno Schulenberg, 2018/05/07
- Re: [Nano-devel] [PATCH] add an "atends" configuration setting, markweston, 2018/05/07
- Re: [Nano-devel] [PATCH] add an "atends" configuration setting, Benno Schulenberg, 2018/05/08
- Re: [Nano-devel] [PATCH] add an "atends" configuration setting, markweston, 2018/05/08
- Re: [Nano-devel] [PATCH] add an "atends" configuration setting, markweston, 2018/05/08
- Re: [Nano-devel] [PATCH] add an "afterends" configuration setting, Benno Schulenberg, 2018/05/09
- Re: [Nano-devel] [PATCH] add an "afterends" configuration setting, markweston, 2018/05/09
- Re: [Nano-devel] [PATCH] add an "afterends" configuration setting, Benno Schulenberg, 2018/05/10