From 890e5ac7b89f5cccf120d966dc488f9ddd516a3d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 19 Apr 2016 22:25:05 +0200 Subject: Clarify that cursor_pos is BYTE offset (not character) --- src/sc_editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sc_editor.h') diff --git a/src/sc_editor.h b/src/sc_editor.h index eaa7f41..594f344 100644 --- a/src/sc_editor.h +++ b/src/sc_editor.h @@ -118,7 +118,7 @@ struct _sceditor /* Location of the cursor */ struct frame *cursor_frame; int cursor_para; /* paragraph index */ - int cursor_pos; /* character offset into paragraph */ + size_t cursor_pos; /* byte offset into paragraph */ int cursor_trail; /* Border surrounding actual slide within drawingarea */ -- cgit v1.2.3