NeoMutt  2024-03-23-147-g885fbc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
functions.h
Go to the documentation of this file.
1
23#ifndef MUTT_EDITOR_FUNCTIONS_H
24#define MUTT_EDITOR_FUNCTIONS_H
25
26#include <stdbool.h>
27#include <stddef.h>
28
29struct EnterState;
30struct EnterWindowData;
31struct MuttWindow;
32
42typedef int (*enter_function_t)(struct EnterWindowData *wdata, int op);
43
48{
49 int op;
51};
52
53int enter_function_dispatcher(struct MuttWindow *win, int op);
54bool self_insert(struct EnterWindowData *wdata, int ch);
55void replace_part(struct EnterState *es, size_t from, const char *buf);
56
57#endif /* MUTT_EDITOR_FUNCTIONS_H */
int(* enter_function_t)(struct EnterWindowData *wdata, int op)
Definition: functions.h:42
void replace_part(struct EnterState *es, size_t from, const char *buf)
Search and replace on a buffer.
Definition: functions.c:132
bool self_insert(struct EnterWindowData *wdata, int ch)
Insert a normal character.
Definition: window.c:89
int enter_function_dispatcher(struct MuttWindow *win, int op)
Perform an Enter function - Implements function_dispatcher_t -.
Definition: functions.c:482
A NeoMutt function.
Definition: functions.h:48
int op
Op code, e.g. OP_SEARCH.
Definition: functions.h:49
enter_function_t function
Function to call.
Definition: functions.h:50
Keep our place when entering a string.
Definition: state.h:32
Data to fill the Enter Window.
Definition: wdata.h:46