43 if (!wdata || (op != OP_EDITOR_COMPLETE))
72 if (!wdata || (op != OP_EDITOR_COMPLETE_QUERY))
78 for (; (i > 0) && (wdata->
state->
wbuf[i - 1] !=
','); i--)
97 if (op == OP_EDITOR_COMPLETE)
99 if (op == OP_EDITOR_COMPLETE_QUERY)
const struct CompleteOps CompleteAliasOps
Auto-Completion of Aliases.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Convenience wrapper for the core headers.
FunctionRetval
Possible return values for NeoMutt functions.
@ FR_SUCCESS
Valid function - successfully performed.
@ FR_CONTINUE
Remain in the Dialog.
@ FR_NO_ACTION
Valid function - no action performed.
int alias_complete(struct Buffer *buf, struct ConfigSubset *sub)
Alias completion routine.
int query_complete(struct Buffer *buf, struct ConfigSubset *sub)
Perform auto-complete using an Address Query.
void replace_part(struct EnterState *es, size_t from, const char *buf)
Search and replace on a buffer.
enum FunctionRetval complete_alias_query(struct EnterWindowData *wdata, int op)
Complete an Alias Query - Implements CompleteOps::complete() -.
enum FunctionRetval complete_alias(struct EnterWindowData *wdata, int op)
Alias completion wrapper - Implements CompleteOps::complete() -.
enum FunctionRetval complete_alias_complete(struct EnterWindowData *wdata, int op)
Complete an Alias - Implements CompleteOps::complete() -.
Convenience wrapper for the gui headers.
void buf_mb_wcstombs(struct Buffer *dest, const wchar_t *wstr, size_t wlen)
Convert a string from wide to multibyte characters.
Convenience wrapper for the library headers.
enum FunctionRetval(* complete)(struct EnterWindowData *wdata, int op)
size_t curpos
Position of the cursor.
wchar_t * wbuf
Buffer for the string being entered.
size_t lastchar
Position of the last character.
Data to fill the Enter Window.
struct Buffer * buffer
struct Buffer for the result
struct EnterState * state
Current state of text entry.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.