aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-07-27 21:04:20 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-07-28 13:21:50 +0200
commit620518966fb99511c506af292cc1885f7a419881 (patch)
treea3ae882163f2837bd4b55a5a67dc46b0c6fbf731 /view.h
parentc9499ddd97d1bb8395e896050e92c6eee7e4b205 (diff)
downloadvis-620518966fb99511c506af292cc1885f7a419881.tar.gz
vis-620518966fb99511c506af292cc1885f7a419881.tar.xz
vis: add per cursor registers
Diffstat (limited to 'view.h')
-rw-r--r--view.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/view.h b/view.h
index ce2dc93..97fd12c 100644
--- a/view.h
+++ b/view.h
@@ -3,6 +3,7 @@
#include <stddef.h>
#include <stdbool.h>
+#include "register.h"
#include "text.h"
#include "ui.h"
#include "syntax.h"
@@ -130,6 +131,8 @@ size_t view_cursors_pos(Cursor*);
/* place cursor at `pos' which should be in the interval [0, text-size] */
void view_cursors_to(Cursor*, size_t pos);
void view_cursors_scroll_to(Cursor*, size_t pos);
+/* get register associated with this register */
+Register *view_cursors_register(Cursor*);
/* start selected area at current cursor position. further cursor movements
* will affect the selected region. */
void view_cursors_selection_start(Cursor*);