def startup(self):
    bufferManager = self.program.bufferManager
    for f in self.program.prefs.startup.get('cliFiles', []):
        tb = bufferManager.loadTextBuffer(f['path'])
        if (tb is None):
            continue
        tb.parseDocument()
        if (f['row'] is not None):
            if (f['col'] is not None):
                tb.selectText(f['row'], f['col'], 0, app.selectable.kSelectionNone)
            else:
                tb.selectText(f['row'], 0, 0, app.selectable.kSelectionNone)
    if self.program.prefs.startup.get('readStdin'):
        bufferManager.readStdin()
    bufferManager.buffers.reverse()
    tb = bufferManager.topBuffer()
    if (not tb):
        tb = bufferManager.newTextBuffer()
    self.setTextBuffer(tb)
    self.textBuffer.parseDocument()
    openToLine = self.program.prefs.startup.get('openToLine')
    if (openToLine is not None):
        self.textBuffer.selectText((openToLine - 1), 0, 0, app.selectable.kSelectionNone)
def startup(self):
    bufferManager = self.program.bufferManager
    for f in self.program.prefs.startup.get('cliFiles', []):
        tb = bufferManager.loadTextBuffer(f['path'])
        if (tb is None):
            continue
        tb.parseDocument()
        if (f['row'] is not None):
            if (f['col'] is not None):
                tb.selectText(f['row'], f['col'], 0, app.selectable.kSelectionNone)
            else:
                tb.selectText(f['row'], 0, 0, app.selectable.kSelectionNone)
    if self.program.prefs.startup.get('readStdin'):
        bufferManager.readStdin()
    bufferManager.buffers.reverse()
    tb = bufferManager.topBuffer()
    if (not tb):
        tb = bufferManager.newTextBuffer()
    self.setTextBuffer(tb)
    self.textBuffer.parseDocument()
    openToLine = self.program.prefs.startup.get('openToLine')
    if (openToLine is not None):
        self.textBuffer.selectText((openToLine - 1), 0, 0, app.selectable.kSelectionNone)