diff options
author | Kevin McCarthy <kevin@8t8.us> | 2020-05-17 13:01:35 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2020-05-17 19:09:20 -0700 |
commit | 6150d285a5d4252a0e70b87c955502c64ff2f790 (patch) | |
tree | 9a0e15e0db66538cd169ce79f05d9b9defe7a361 /autocrypt | |
parent | 95cf171ef67f7548a60707bc652ada5e31301c57 (diff) |
Clean up Editor Menu interface inside Mutt.
enter_filename() api:
* Rename enter_fname() to _enter_fname()
* Rename mutt_buffer_enter_mailbox() to mutt_enter_mailbox()
* Rename mutt_buffer_enter_filenames() to mutt_enter_filenames()
* Remove 'multiple' and 'fname buffer' parameters from
mutt_enter_filenames(). Create a temp buffer, and enable multiple
automatically. This removes the possibility of mistakenly looking
at an unpopulated 'fname' parameter for the result.
* Create mutt_enter_filename(). This isn't used currently, but it
makes sense to have a "single filename" api already set up with
correct parameters.
get_field() api:
* Rename _mutt_buffer_get_field() to a static _get_field() function.
* Remove _mutt_get_field() and make mutt_get_field() an actual
function.
* Remove the multiple/files/numfiles parameters, since this
should only be done through mutt_enter_filenames().
_mutt_enter_string() api:
Add comments to mutt_enter_string() and _mutt_enter_string() headers.
Noting that they should generally not be called directly. List the
functions that should be used inside Mutt. Note the behavior of the
multiple parameter.
Diffstat (limited to 'autocrypt')
-rw-r--r-- | autocrypt/autocrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autocrypt/autocrypt.c b/autocrypt/autocrypt.c index dbdec273..1aa02fff 100644 --- a/autocrypt/autocrypt.c +++ b/autocrypt/autocrypt.c @@ -860,7 +860,7 @@ void mutt_autocrypt_scan_mailboxes (void) /* L10N: The prompt for a mailbox to scan for Autocrypt: headers */ - if ((!mutt_buffer_enter_mailbox (_("Scan mailbox"), folderbuf, 0)) && + if ((!mutt_enter_mailbox (_("Scan mailbox"), folderbuf, 0)) && mutt_buffer_len (folderbuf)) { mutt_buffer_expand_path (folderbuf); |