Changed EDIT_EM_CharFromPos to return line number.