From 8965cd21386683cae680ba7de4b6a6ee6687e17f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 27 Mar 2016 16:14:48 +0200 Subject: view: change cursor creation API to take an initial position --- view.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view.h') 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 */ -- cgit v1.2.3