]> git.cworth.org Git - sup/blobdiff - lib/sup/horizontal-selector.rb
make 'm' (compose) in thread-view-mode prompt for a to: address with a default
[sup] / lib / sup / horizontal-selector.rb
index 8ef30fed0e18a57e3c373add01af51901cfa0555..aef16d4844e2379d65c910332e4317eb758add19 100644 (file)
@@ -16,25 +16,6 @@ class HorizontalSelector
 
   def val; @vals[@selection] end
 
-  def old_line width=nil
-    label =
-      if width
-        sprintf "%#{width}s ", @label
-      else
-        "#{@label} "
-      end
-
-    [[:none, label]] + 
-      (0 ... @labels.length).inject([]) do |array, i|
-        array + [
-          if i == @selection
-            [@selected_color, "[" + @labels[i] + "]"]
-          else
-            [@base_color, " " + @labels[i] + " "]
-          end] + [[:none, " "]]
-      end + [[:none, ""]]
-  end
-
   def line width=nil
     label =
       if width
@@ -43,15 +24,15 @@ class HorizontalSelector
         "#{@label} "
       end
 
-    [[:none, label]] + 
+    [[@base_color, label]] + 
       (0 ... @labels.length).inject([]) do |array, i|
         array + [
           if i == @selection
             [@selected_color, @labels[i]]
           else
             [@base_color, @labels[i]]
-          end] + [[:none, "  "]]
-      end + [[:none, ""]]
+          end] + [[@base_color, "  "]]
+      end + [[@base_color, ""]]
   end
 
   def roll_left