From 38d7be1d7ea7cf9025f6facc1404e3e65c56a9cc Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Wed, 3 Mar 2021 15:43:41 +0100 Subject: Add trailing slash in tagline for directories. --- editor/buffer.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editor') 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 } -- cgit v1.2.3