… | |
… | |
81 | - $line->offset_of ($self->selection_beg); |
81 | - $line->offset_of ($self->selection_beg); |
82 | |
82 | |
83 | my @matches; |
83 | my @matches; |
84 | |
84 | |
85 | if ($markofs < $line->l) { |
85 | if ($markofs < $line->l) { |
86 | # convert markofs form character to UTF-8 offset space |
86 | # convert markofs from character to UTF-8 offset space |
87 | { |
87 | { |
88 | my $prefix = substr $text, 0, $markofs; |
88 | my $prefix = substr $text, 0, $markofs; |
89 | utf8::encode $prefix; |
89 | utf8::encode $prefix; |
90 | $markofs = length $prefix; |
90 | $markofs = length $prefix; |
91 | } |
91 | } |