make sure the the point does not get position beyond the text

Signed-off-by: Mattias Andrée <maandree@operamail.com>
ensure that the point is visible

Signed-off-by: Mattias Andrée <maandree@operamail.com>