aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editor/buffer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/buffer.go b/editor/buffer.go
index 189b57b..54ac23e 100644
--- a/editor/buffer.go
+++ b/editor/buffer.go
@@ -176,6 +176,9 @@ func (b *Buffer) Name() string {
return ""
}
s, _ := filepath.Abs(b.file.name)
+ if b.what == BufferDir {
+ s += string(filepath.Separator)
+ }
return s
}