Apply basename option in tabbar as well

This commit is contained in:
Zachary Yedidia
2020-02-24 13:48:37 -05:00
parent 8a2048e7f6
commit dff8b33e9c
3 changed files with 10 additions and 9 deletions

View File

@@ -3,7 +3,6 @@ package display
import (
"bytes"
"fmt"
"path"
"regexp"
"strconv"
"strings"
@@ -32,9 +31,6 @@ type StatusLine struct {
var statusInfo = map[string]func(*buffer.Buffer) string{
"filename": func(b *buffer.Buffer) string {
if b.Settings["basename"].(bool) {
return path.Base(b.GetName())
}
return b.GetName()
},
"line": func(b *buffer.Buffer) string {