aboutsummaryrefslogtreecommitdiff
path: root/src/testcard.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2016-09-21 14:33:50 +0200
committerThomas White <taw@bitwiz.org.uk>2016-09-21 14:33:50 +0200
commit6c5b9480352251c2d221eb7997fdd6dd358d7366 (patch)
treee380032f80e5696d320b9ea6196dfe08a38946bf /src/testcard.c
parent8ebf692bcd8ef5f949afb01e777e58ee607533c4 (diff)
Fix abuse of cursor_trail
cursor_pos is a byte offset, but cursor_trail is a number of characters. Therefore, adding them together is always wrong. This fixes problems when inserting multi-byte characters.
Diffstat (limited to 'src/testcard.c')
0 files changed, 0 insertions, 0 deletions