aboutsummaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2021-03-03 15:43:41 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2021-03-03 15:43:41 +0100
commit38d7be1d7ea7cf9025f6facc1404e3e65c56a9cc (patch)
tree39115f1ab1b4b03bc9b7e3dedd82e1e48f37049d /editor
parent80571e64fa78ad90a563987cffc856b897e6bd8b (diff)
downloadpoe-38d7be1d7ea7cf9025f6facc1404e3e65c56a9cc.tar.gz
poe-38d7be1d7ea7cf9025f6facc1404e3e65c56a9cc.tar.bz2
poe-38d7be1d7ea7cf9025f6facc1404e3e65c56a9cc.zip
Add trailing slash in tagline for directories.
Diffstat (limited to 'editor')
-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
}