aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-03-27 16:14:48 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-03-28 12:25:05 +0200
commit8965cd21386683cae680ba7de4b6a6ee6687e17f (patch)
treeb4920c2958069cff877a778bf0dbf3e8578e71a9 /view.h
parentf567d332bec0e7d31b7214e4065663e5349b2252 (diff)
downloadvis-8965cd21386683cae680ba7de4b6a6ee6687e17f.tar.gz
vis-8965cd21386683cae680ba7de4b6a6ee6687e17f.tar.xz
view: change cursor creation API to take an initial position
Diffstat (limited to 'view.h')
-rw-r--r--view.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/view.h b/view.h
index 621543e..e408cf7 100644
--- a/view.h
+++ b/view.h
@@ -119,8 +119,8 @@ void view_scroll_to(View*, size_t pos);
* position is visible. if the position is in the middle of a line, try to
* adjust the viewport in such a way that the whole line is displayed */
void view_cursor_to(View*, size_t pos);
-/* create a new cursor */
-Cursor *view_cursors_new(View*);
+/* create a new cursor, at given position */
+Cursor *view_cursors_new(View*, size_t pos);
/* get number of active cursors */
int view_cursors_count(View*);
/* exist there more than 1 cursor */