From 0987fdd792984291041797032984872102961eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 15 Apr 2016 22:12:36 +0200 Subject: view: add view_cursors_col function --- view.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'view.h') diff --git a/view.h b/view.h index 2d78924..77fea1a 100644 --- a/view.h +++ b/view.h @@ -150,6 +150,8 @@ void view_cursors_primary_set(Cursor*); size_t view_cursors_pos(Cursor*); /* get 1-based line number of cursor location */ size_t view_cursors_line(Cursor*); +/* get 1-based column (number of graphemes on line) cursor postion */ +size_t view_cursors_col(Cursor*); /* get/set zero based index of cell on which cursor currently resides, * -1 if cursor is currently not visible */ int view_cursors_cell_get(Cursor*); -- cgit v1.2.3