mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-09 14:20:16 +09:00
Fix autoindent setting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user