Open help in a separate split

This commit is contained in:
Zachary Yedidia
2016-07-14 13:01:02 -04:00
parent abd36649c9
commit 02f78edaf9
4 changed files with 9 additions and 21 deletions

View File

@@ -27,6 +27,9 @@ type View struct {
widthPercent int
heightPercent int
// Specifies whether or not this view holds a help buffer
Help bool
// Actual with and height
width int
height int
@@ -40,22 +43,13 @@ type View struct {
// Holds the list of gutter messages
messages map[string][]GutterMessage
// Is the help text opened in this view
helpOpen bool
// This is the index of this view in the views array
Num int
// What tab is this view stored in
TabNum int
// Is this view modifiable?
Modifiable bool
// The buffer
Buf *Buffer
// This is the buffer that was last opened
// This is used to open help, and then go back to the previously opened buffer
lastBuffer *Buffer
// The statusline
sline Statusline