line_end..frame_offset is 1 char longer than it seems