-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathundo.h
More file actions
18 lines (16 loc) · 681 Bytes
/
undo.h
File metadata and controls
18 lines (16 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef EMSYS_UNDO_H
#define EMSYS_UNDO_H 1
#include "emsys.h"
void editorDoUndo(struct editorBuffer *buf, int count);
void editorDoRedo(struct editorBuffer *buf, int count);
void editorUndoAppendChar(struct editorBuffer *buf, uint8_t c);
void editorUndoAppendUnicode(struct editorConfig *ed, struct editorBuffer *buf);
void editorUndoBackSpace(struct editorBuffer *buf, uint8_t c);
void editorUndoDelChar(struct editorBuffer *buf, erow *row);
struct editorUndo *newUndo(void);
void clearRedos(struct editorBuffer *buf);
void clearUndosAndRedos(struct editorBuffer *buf);
#ifdef EMSYS_DEBUG_UNDO
void debugUnpair(struct editorConfig *ed, struct editorBuffer *buf);
#endif
#endif