mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-29 12:20:24 +00:00
Fix autoindent setting
This commit is contained in:
parent
7365f0f785
commit
7281cdbadd
1 changed files with 9 additions and 0 deletions
|
|
@ -105,6 +105,15 @@ func SetOption(view *View, args []string) {
|
|||
messenger.Error("Invalid value for " + option)
|
||||
return
|
||||
}
|
||||
} else if option == "autoindent" {
|
||||
if value == "on" {
|
||||
settings.AutoIndent = true
|
||||
} else if value == "off" {
|
||||
settings.AutoIndent = false
|
||||
} else {
|
||||
messenger.Error("Invalid value for " + option)
|
||||
return
|
||||
}
|
||||
} else if option == "ruler" {
|
||||
if value == "on" {
|
||||
settings.Ruler = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue