default to dirname on open rather than full path
@@ -58,7 +58,9 @@ class InteractiveOpener(app.controller.Controller):
self.priorTextBuffer = self.host.textBuffer
self.commandDefault = self.textBuffer.insertPrintable
self.textBuffer.selectionAll()
- self.textBuffer.editPasteLines((self.host.textBuffer.fullPath,))
+ path = os.path.dirname(self.host.textBuffer.fullPath)
+ path += os.path.sep
+ self.textBuffer.editPasteLines((path,))
# Create a new text buffer to display dir listing.
self.host.setTextBuffer(text_buffer.TextBuffer())
