43 if (!wdata || ((op != OP_EDITOR_COMPLETE) && (op != OP_EDITOR_COMPLETE_QUERY)))
47 if (i && (wdata->
state->
wbuf[i - 1] ==
'~'))
55 for (; (i > 0) && (wdata->
state->
wbuf[i - 1] !=
'~'); i--)
void buf_fix_dptr(struct Buffer *buf)
Move the dptr to end of the Buffer.
int mutt_label_complete(struct CompletionData *cd, struct Buffer *buf, int numtabs)
Complete a label name.
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.
void replace_part(struct EnterState *es, size_t from, const char *buf)
Search and replace on a buffer.
enum FunctionRetval complete_pattern(struct EnterWindowData *wdata, int op)
Complete a NeoMutt Pattern - Implements CompleteOps::complete() -.
bool dlg_pattern(struct Buffer *buf)
Show menu to select a Pattern -.
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.
const struct CompleteOps CompletePatternOps
Auto-Completion of Patterns.
char * data
Pointer to data.
enum FunctionRetval(* complete)(struct EnterWindowData *wdata, int op)
size_t curpos
Position of the cursor.
wchar_t * wbuf
Buffer for the string being entered.
Data to fill the Enter Window.
int tabs
Number of times the user has hit tab.
struct CompletionData * cd
Auto-completion state data.
struct Buffer * buffer
struct Buffer for the result
struct EnterState * state
Current state of text entry.