NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
state.h
Go to the documentation of this file.
1
23#ifndef MUTT_EDITOR_STATE_H
24#define MUTT_EDITOR_STATE_H
25
26#include <stddef.h>
27
32{
33 wchar_t *wbuf;
34 size_t wbuflen;
35 size_t lastchar;
36 size_t curpos;
37 size_t begin;
38};
39
40void enter_state_free(struct EnterState **ptr);
41struct EnterState *enter_state_new(void);
42void enter_state_resize(struct EnterState *es, size_t num);
43
44#endif /* MUTT_EDITOR_STATE_H */
struct EnterState * enter_state_new(void)
Create a new EnterState.
Definition: state.c:74
void enter_state_free(struct EnterState **ptr)
Free an EnterState.
Definition: state.c:38
void enter_state_resize(struct EnterState *es, size_t num)
Make the buffer bigger.
Definition: state.c:54
Keep our place when entering a string.
Definition: state.h:32
size_t curpos
Position of the cursor.
Definition: state.h:36
size_t wbuflen
Length of buffer.
Definition: state.h:34
size_t begin
Position of the start.
Definition: state.h:37
wchar_t * wbuf
Buffer for the string being entered.
Definition: state.h:33
size_t lastchar
Position of the last character.
Definition: state.h:35