diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-03-27 16:14:48 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-03-28 12:25:05 +0200 |
| commit | 8965cd21386683cae680ba7de4b6a6ee6687e17f (patch) | |
| tree | b4920c2958069cff877a778bf0dbf3e8578e71a9 /view.h | |
| parent | f567d332bec0e7d31b7214e4065663e5349b2252 (diff) | |
| download | vis-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |
