def METHOD_NAME(self, findOpenView):
    """(Internal) Remember the current cursor position and whether a new view was requested."""
    pos = self._history[self._index]
    pos.cursor = self.mainwindow().textCursor()
    pos.find_open_view = findOpenView
    self._index += 1
    del self._history[self._index:]
    self._history.append(Position())
    self.updateActions()