summaryrefslogtreecommitdiffstats
path: root/commands.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-05-17 13:01:35 -0700
committerKevin McCarthy <kevin@8t8.us>2020-05-17 19:09:20 -0700
commit6150d285a5d4252a0e70b87c955502c64ff2f790 (patch)
tree9a0e15e0db66538cd169ce79f05d9b9defe7a361 /commands.c
parent95cf171ef67f7548a60707bc652ada5e31301c57 (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 'commands.c')
-rw-r--r--commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index 7864f1a6..ac9b8998 100644
--- a/commands.c
+++ b/commands.c
@@ -932,7 +932,7 @@ int mutt_save_message (HEADER *h, int delete, int decode, int decrypt)
}
mutt_buffer_pretty_mailbox (buf);
- if (mutt_buffer_enter_mailbox (prompt, buf, 0) == -1)
+ if (mutt_enter_mailbox (prompt, buf, 0) == -1)
goto cleanup;
if (!mutt_buffer_len (buf))
goto cleanup;