Given a list of line and position in form of line and column number, compute the offset from the start of first line.
position of cursor
list of lines to compute the position
should count the line break as space? return - offset number
Given a list of line and position in form of line and column number, compute the offset from the start of first line.