diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-27 13:57:01 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-27 13:57:01 +0100 |
| commit | 1954d5ef9219b5c3c8ba757b0936118fe265d13b (patch) | |
| tree | 0d159fb6db99707524a5f9629b272afd003d9fa3 /view.h | |
| parent | 28481439c06780e2c56d3c2b47711785bcaa25a6 (diff) | |
| download | vis-1954d5ef9219b5c3c8ba757b0936118fe265d13b.tar.gz vis-1954d5ef9219b5c3c8ba757b0936118fe265d13b.tar.xz | |
vis: improve cursor alignment command <C-a>
Diffstat (limited to 'view.h')
| -rw-r--r-- | view.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -136,6 +136,10 @@ Cursor *view_cursors_prev(Cursor*); Cursor *view_cursors_next(Cursor*); /* get current position of cursor in bytes from the start of the file */ size_t view_cursors_pos(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*); +int view_cursors_cell_set(Cursor*, int cell); /* place cursor at `pos' which should be in the interval [0, text-size] */ void view_cursors_to(Cursor*, size_t pos); void view_cursors_scroll_to(Cursor*, size_t pos); |
