diff options
author | Thomas White <taw@bitwiz.org.uk> | 2016-03-31 00:27:39 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2016-03-31 00:27:39 +0200 |
commit | 8e5fb26c9b5443edea16ed9a833761100aca7f58 (patch) | |
tree | 0435f1873f6519fffb519923df66bcf2a2df8d73 /src/frame.c | |
parent | c56a39fc9bda020f6c5c862bcf7c9455e0d83459 (diff) |
Handle input at end of run
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c index 1fb10c6..542ced2 100644 --- a/src/frame.c +++ b/src/frame.c @@ -692,7 +692,7 @@ static int which_run(Paragraph *para, size_t offs) for ( i=0; i<para->n_runs; i++ ) { struct text_run *run = ¶->runs[i]; if ( (offs >= run->para_offs_bytes) - && (offs < run->para_offs_bytes + run->len_bytes) ) + && (offs <= run->para_offs_bytes + run->len_bytes) ) { return i; } |