diff options
author | Thomas White <taw@bitwiz.org.uk> | 2016-04-19 22:25:05 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2016-04-19 22:53:06 +0200 |
commit | 890e5ac7b89f5cccf120d966dc488f9ddd516a3d (patch) | |
tree | 4e5ab43c4fee1cb6f41cb842402d99da469dd52f /src/sc_editor.h | |
parent | 43cefb51f137481e873e3401bbad88b140c4b521 (diff) |
Clarify that cursor_pos is BYTE offset (not character)
Diffstat (limited to 'src/sc_editor.h')
-rw-r--r-- | src/sc_editor.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |