code: def first_visible_line(self, after_scroll_offset=False):
          
          if after_scroll_offset:
              return self.displayed_lines[self.applied_scroll_offsets.top]
          else:
              return self.displayed_lines[0]
docs: Return the line number (0 based) of the input document that corresponds
          with the first visible line.