Add separator characters between splits

Fixes #196
This commit is contained in:
Zachary Yedidia
2016-07-15 17:38:42 -04:00
parent eba501e095
commit e890c878f3

View File

@@ -592,7 +592,7 @@ func (v *View) DisplayView() {
if v.x != 0 {
// Draw the split divider
v.drawCell(screenX, screenY, ' ', nil, defStyle.Reverse(true))
v.drawCell(screenX, screenY, '|', nil, defStyle.Reverse(true))
screenX++
}
@@ -815,7 +815,12 @@ func (v *View) Display() {
if v.Num == tabs[curTab].curView {
v.DisplayCursor()
}
_, screenH := screen.Size()
if settings["statusline"].(bool) {
v.sline.Display()
} else if (v.y + v.height) != screenH-1 {
for x := 0; x < v.width; x++ {
screen.SetContent(v.x+x, v.y+v.height, '-', nil, defStyle.Reverse(true))
}
}
}