From 7281cdbadd62f7745e77cc4a9b50a16fb709390e Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sat, 23 Apr 2016 08:56:45 -0400 Subject: [PATCH] Fix autoindent setting --- cmd/micro/settings.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmd/micro/settings.go b/cmd/micro/settings.go index 79f52269..00adac31 100644 --- a/cmd/micro/settings.go +++ b/cmd/micro/settings.go @@ -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