diff options
author | KatolaZ <katolaz@freaknet.org> | 2019-08-16 23:43:24 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2019-08-16 23:43:24 +0100 |
commit | ce2bfb4d3a49a27bde7c8bbc6c6b1ef6f80054aa (patch) | |
tree | d1fcd43773692a8473d7c335303370eada9a1569 /gramscii.h | |
parent | 02c54fe6f289901f5b356ca98a81dec78fef4f36 (diff) |
add position marks (Ma/g'a)
Diffstat (limited to 'gramscii.h')
-rw-r--r-- | gramscii.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -90,6 +90,11 @@ typedef struct{ line_t *l; } lineset_t; +typedef struct{ + int x; + int y; +} pos_t; + /** MACROS **/ @@ -105,6 +110,9 @@ lineset_t screen; /* what is visualised */ lineset_t cutbuf; /* cut/paste buffer */ lineset_t *undo; /* undo list */ +pos_t marks[26]; /* position marks */ +char mark_map[26]; /* marks map */ + int undo_sz;/* allocated size of undo list*/ int undo_cur;/* undo position */ int undo_lst;/* last valid undo position */ @@ -175,6 +183,7 @@ void crop_to_nonblank(); void crop_to_rect(); void erase_blank_lines(int y1, int y2); int _isblank(int c); +void mark_pos(FILE *fc); /**/ /** drawing-related functions **/ |