From a2abb7d9c8df32f65f907452f292784d569e8e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 7 Apr 2016 14:33:49 +0200 Subject: vis: indicate primary cursor number in status bar If there exist multiple cursors, [n/m] is added to the status bar. Meaning the n-th cursor out of the existing m cursors is currently the primary one. --- view.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'view.h') diff --git a/view.h b/view.h index fda953f..fd0c329 100644 --- a/view.h +++ b/view.h @@ -123,6 +123,8 @@ void view_cursor_to(View*, size_t pos); Cursor *view_cursors_new(View*, size_t pos); /* get number of active cursors */ int view_cursors_count(View*); +/* get index/relative order at time of creation of a cursor [0,count-1] */ +int view_cursors_number(Cursor*); /* exist there more than 1 cursor */ bool view_cursors_multiple(View*); /* dispose an existing cursor with its associated selection (if any), -- cgit v1.2.3