Rename multimode to multiopen

Ref #2689
This commit is contained in:
Zachary Yedidia
2023-01-24 17:06:52 -08:00
parent 432fc7ed58
commit e222ed73b8
3 changed files with 9 additions and 9 deletions

View File

@@ -148,13 +148,13 @@ func (t *TabList) Display() {
var Tabs *TabList
func InitTabs(bufs []*buffer.Buffer) {
multiMode := config.GetGlobalOption("multimode").(string)
if multiMode == "tab" {
multiopen := config.GetGlobalOption("multiopen").(string)
if multiopen == "tab" {
Tabs = NewTabList(bufs)
} else {
Tabs = NewTabList(bufs[:1])
for _, b := range bufs[1:] {
if multiMode == "vsplit" {
if multiopen == "vsplit" {
MainTab().CurPane().VSplitBuf(b)
} else { // default hsplit
MainTab().CurPane().HSplitBuf(b)