aboutsummaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2016-04-19 22:25:05 +0200
committerThomas White <taw@bitwiz.org.uk>2016-04-19 22:53:06 +0200
commit890e5ac7b89f5cccf120d966dc488f9ddd516a3d (patch)
tree4e5ab43c4fee1cb6f41cb842402d99da469dd52f /src/frame.h
parent43cefb51f137481e873e3401bbad88b140c4b521 (diff)
Clarify that cursor_pos is BYTE offset (not character)
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frame.h b/src/frame.h
index a6b316f..d6d171c 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -128,7 +128,7 @@ extern void wrap_paragraph(Paragraph *para, PangoContext *pc, double w);
extern size_t end_offset_of_para(struct frame *fr, int pn);
extern int find_cursor(struct frame *fr, double x, double y,
- int *ppara, int *ppos, int *ptrail);
+ int *ppara, size_t *ppos, int *ptrail);
extern int get_para_highlight(struct frame *fr, int cursor_para,
double *cx, double *cy, double *cw, double *ch);
@@ -136,10 +136,10 @@ extern int get_para_highlight(struct frame *fr, int cursor_para,
extern int get_cursor_pos(struct frame *fr, int cursor_para, int cursor_pos,
double *cx, double *cy, double *ch);
-extern void cursor_moveh(struct frame *fr, int *cpara, int *cpos, int *ctrail,
+extern void cursor_moveh(struct frame *fr, int *cpara, size_t *cpos, int *ctrail,
signed int dir);
-extern void cursor_movev(struct frame *fr, int *cpara, int *cpos, int *ctrail,
+extern void cursor_movev(struct frame *fr, int *cpara, size_t *cpos, int *ctrail,
signed int dir);
extern void check_callback_click(struct frame *fr, int para);