editbox: correct problems when there are wrapped lines

the findBlockByLineNumber() function, which gets the text block for a
physical line number taking into account wrapped lines (each part of the
wrapped line counts a separate line), was incorrectly being used to get
text blocks for a given line number, and uses of were changed to the
findBlockByNumber() function, which does not consider wrapped lines