Make settings capitalization consistent

This commit is contained in:
Camille Scholtz
2017-10-11 14:22:23 +02:00
parent 5af5140362
commit 329669ce79
3 changed files with 8 additions and 8 deletions

View File

@@ -213,8 +213,8 @@ func DefaultGlobalSettings() map[string]interface{} {
"scrollspeed": float64(2),
"scrollmargin": float64(3),
"softwrap": false,
"splitRight": true,
"splitBottom": true,
"splitright": true,
"splitbottom": true,
"statusline": true,
"sucmd": "sudo",
"syntax": true,
@@ -252,8 +252,8 @@ func DefaultLocalSettings() map[string]interface{} {
"scrollspeed": float64(2),
"scrollmargin": float64(3),
"softwrap": false,
"splitRight": true,
"splitBottom": true,
"splitright": true,
"splitbottom": true,
"statusline": true,
"syntax": true,
"tabmovement": false,

View File

@@ -282,7 +282,7 @@ func (v *View) ReOpen() {
// HSplit opens a horizontal split with the given buffer
func (v *View) HSplit(buf *Buffer) {
i := 0
if v.Buf.Settings["splitBottom"].(bool) {
if v.Buf.Settings["splitbottom"].(bool) {
i = 1
}
v.splitNode.HSplit(buf, v.Num+i)
@@ -291,7 +291,7 @@ func (v *View) HSplit(buf *Buffer) {
// VSplit opens a vertical split with the given buffer
func (v *View) VSplit(buf *Buffer) {
i := 0
if v.Buf.Settings["splitRight"].(bool) {
if v.Buf.Settings["splitright"].(bool) {
i = 1
}
v.splitNode.VSplit(buf, v.Num+i)

View File

@@ -110,12 +110,12 @@ Here are the options that you can set:
default value: `off`
* `splitRight`: when a vertical split is created, should it be created to the right of
* `splitright`: when a vertical split is created, should it be created to the right of
the current split?
default value: `on`
* `splitBottom`: when a horizontal split is created, should it be created below the
* `splitbottom`: when a horizontal split is created, should it be created below the
current split?
default value: `on`