mirror of
https://github.com/felixangell/phi.git
synced 2024-08-16 11:10:37 +03:00
reset buffer width so now the buffers actually render...
This commit is contained in:
parent
be01667137
commit
0992e6f73e
@ -62,7 +62,6 @@ func NewBuffer(conf *cfg.TomlConfig, parent *View, index int) *Buffer {
|
||||
filePath: "",
|
||||
cam: &camera{0, 0},
|
||||
}
|
||||
buff.appendLine("")
|
||||
return buff
|
||||
}
|
||||
|
||||
|
@ -24,6 +24,7 @@ func NewCommandPalette(conf cfg.TomlConfig) *CommandPalette {
|
||||
parentBuff: nil,
|
||||
HasFocus: false,
|
||||
}
|
||||
palette.buff.appendLine("")
|
||||
return palette
|
||||
}
|
||||
|
||||
|
@ -119,6 +119,7 @@ func (n *View) AddBuffer() *Buffer {
|
||||
// note that we +1 the components because
|
||||
// we haven't yet added the panel
|
||||
var bufferWidth int
|
||||
bufferWidth = n.w / (len(n.buffers) + 1)
|
||||
|
||||
n.buffers[c.index] = c
|
||||
n.focusedBuff = c.index
|
||||
|
Loading…
Reference in New Issue
Block a user