commit 148cabb073b32123b798a1fc3e876ec997bd8688
parent cbd72b765e83fbafae412cac85dfc2db03314b9c
Author: Gaute Hope <eg@gaute.vetsj.com>
Date: Sat, 29 Nov 2014 10:42:29 +0100
colormap: use fail, not raise ArgumentError
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/colormap.rb b/lib/sup/colormap.rb
@@ -19,7 +19,7 @@ module Ncurses
24.times { |x| color! "g#{x}", (16+6*6*6) + x }
elsif Ncurses::NUM_COLORS == -1
## Terminal emulator doesn't appear to support colors
- raise ArgumentError, "sup must be run in a terminal with color support"
+ fail "sup must be run in a terminal with color support, please check your TERM variable."
end
end
@@ -195,7 +195,7 @@ class Colormap
end
## Set attachment sybmol to sane default for existing colorschemes
- if user_colors and user_colors.has_key? :to_me
+ if user_colors and user_colors.has_key? :to_me
user_colors[:with_attachment] = user_colors[:to_me] unless user_colors.has_key? :with_attachment
end