lexan: simplify line and offset counting

Signed-off-by: peter@localhost.localdomain