Make tab views array public

Ref #1024
This commit is contained in:
Zachary Yedidia
2018-03-02 19:50:33 -05:00
parent 88d8b0b181
commit cb45481526
8 changed files with 53 additions and 53 deletions

View File

@@ -131,7 +131,7 @@ func NewBuffer(reader io.Reader, size int64, path string) *Buffer {
if path != "" {
for _, tab := range tabs {
for _, view := range tab.views {
for _, view := range tab.Views {
if view.Buf.Path == path {
return view.Buf
}