aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-07 14:33:49 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-08 10:44:22 +0200
commita2abb7d9c8df32f65f907452f292784d569e8e88 (patch)
tree20ca619bd560c6f53f6974d3e1efb41b5e967090 /view.h
parentb9b6b8fb15f1a8986aa5195fbca0d89155ad768e (diff)
downloadvis-a2abb7d9c8df32f65f907452f292784d569e8e88.tar.gz
vis-a2abb7d9c8df32f65f907452f292784d569e8e88.tar.xz
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.
Diffstat (limited to 'view.h')
-rw-r--r--view.h2
1 files changed, 2 insertions, 0 deletions
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),