]> git.lizzy.rs Git - micro.git/blobdiff - cmd/micro/command.go
Fix some issues with unicode handling
[micro.git] / cmd / micro / command.go
index 364de446cd2c0053d85bce2a91356c7246d23cb1..80803973f55daa96ad072e77742917abf8e90a7c 100644 (file)
@@ -165,12 +165,14 @@ func NewTab(args []string) {
 
 // Set sets an option
 func Set(args []string) {
-       // Set an option and we have to set it for every view
-       for _, tab := range tabs {
-               for _, view := range tab.views {
-                       SetOption(view, args)
-               }
+       if len(args) < 2 {
+               return
        }
+
+       option := strings.TrimSpace(args[0])
+       value := strings.TrimSpace(args[1])
+
+       SetOption(option, value)
 }
 
 // Bind creates a new keybinding