aboutsummaryrefslogtreecommitdiff
path: root/ui/tcell/window.go
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2019-05-11 19:40:56 +0200
committerPetter Rodhelind <petter.rodhelind@gmail.com>2019-05-11 19:40:56 +0200
commit1cf7ef53405963b22bb3a158e889766afabbb788 (patch)
tree1bfb0739cd2e8b88e77cfb5771ec8f61298dbd84 /ui/tcell/window.go
parentc0c3e05051de9afd3157d42aeb1dd95b0b2bdfb3 (diff)
downloadpoe-1cf7ef53405963b22bb3a158e889766afabbb788.tar.gz
poe-1cf7ef53405963b22bb3a158e889766afabbb788.tar.bz2
poe-1cf7ef53405963b22bb3a158e889766afabbb788.zip
ui: Use acme colors again, show full filename and show "Del" in tagline.
Diffstat (limited to 'ui/tcell/window.go')
-rw-r--r--ui/tcell/window.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/tcell/window.go b/ui/tcell/window.go
index d278082..b52fbaf 100644
--- a/ui/tcell/window.go
+++ b/ui/tcell/window.go
@@ -2,7 +2,6 @@ package uitcell
import (
"fmt"
- "strings"
"github.com/gdamore/tcell"
"github.com/prodhe/poe/editor"
@@ -42,7 +41,7 @@ func NewWindow(id int64) *Window {
},
}
- fmt.Fprintf(win.tagline, "%s ",
+ fmt.Fprintf(win.tagline, "%s Del ",
win.TagName(),
)
@@ -90,7 +89,7 @@ func (win *Window) Name() string {
}
func (win *Window) TagName() string {
- return strings.TrimPrefix(win.body.text.Name(), ed.WorkDir())
+ return win.body.text.Name()
}
func (win *Window) Dir() string {