aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-27 09:55:21 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-27 10:41:53 +0200
commit0319b359acae515550a3ff68bf62aa2e476015fe (patch)
treec4a1138a5a8a86c994c94cdcc06bf56e3f0a59ca /view.h
parent4e6fad14700bdb4cf473d2fcd175a71600cd6000 (diff)
downloadvis-0319b359acae515550a3ff68bf62aa2e476015fe.tar.gz
vis-0319b359acae515550a3ff68bf62aa2e476015fe.tar.xz
view: change view_cursors_place to take 1 based column number
This should fix inconsistency in the Lua API.
Diffstat (limited to 'view.h')
-rw-r--r--view.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/view.h b/view.h
index 8460116..def8bf2 100644
--- a/view.h
+++ b/view.h
@@ -161,6 +161,7 @@ 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);
+/* place cursor on given (line, column) pair, both values are 1-based */
void view_cursors_place(Cursor*, size_t line, size_t col);
/* get register associated with this register */
Register *view_cursors_register(Cursor*);