parent
29fa6a3d7a
commit
4beb9427c0
|
@ -540,6 +540,7 @@ class PathListBuffer(DirBuffer):
|
||||||
def __init__(self, name, paths, nl='\n'):
|
def __init__(self, name, paths, nl='\n'):
|
||||||
Buffer.__init__(self, nl)
|
Buffer.__init__(self, nl)
|
||||||
self.paths = paths
|
self.paths = paths
|
||||||
|
self.path = os.getcwd()
|
||||||
self._name = name
|
self._name = name
|
||||||
def path_exists(self):
|
def path_exists(self):
|
||||||
raise Exception
|
raise Exception
|
||||||
|
|
|
@ -188,7 +188,7 @@ class ViewBufferParent(Method):
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
b = w.buffer
|
b = w.buffer
|
||||||
if not hasattr(b, 'path'):
|
if not hasattr(b, 'path'):
|
||||||
w.set_error('Buffer has not path')
|
w.set_error('Buffer has no path')
|
||||||
elif b.path == '/':
|
elif b.path == '/':
|
||||||
w.set_error("Root directory has no parent")
|
w.set_error("Root directory has no parent")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue