diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-03-03 15:43:41 +0100 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2021-03-03 15:43:41 +0100 |
commit | 38d7be1d7ea7cf9025f6facc1404e3e65c56a9cc (patch) | |
tree | 39115f1ab1b4b03bc9b7e3dedd82e1e48f37049d /editor/buffer.go | |
parent | 80571e64fa78ad90a563987cffc856b897e6bd8b (diff) | |
download | poe-38d7be1d7ea7cf9025f6facc1404e3e65c56a9cc.tar.gz poe-38d7be1d7ea7cf9025f6facc1404e3e65c56a9cc.tar.bz2 poe-38d7be1d7ea7cf9025f6facc1404e3e65c56a9cc.zip |
Add trailing slash in tagline for directories.
Diffstat (limited to 'editor/buffer.go')
-rw-r--r-- | editor/buffer.go | 3 |
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 } |