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