aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2016-03-31 00:27:39 +0200
committerThomas White <taw@bitwiz.org.uk>2016-03-31 00:27:39 +0200
commit8e5fb26c9b5443edea16ed9a833761100aca7f58 (patch)
tree0435f1873f6519fffb519923df66bcf2a2df8d73 /src
parentc56a39fc9bda020f6c5c862bcf7c9455e0d83459 (diff)
Handle input at end of run
Diffstat (limited to 'src')
-rw-r--r--src/frame.c2
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 = &para->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;
}