sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 716f40cb1bb550aecc37e9d5266141d8c841370a
parent 4f0e7069eea3016825be70f9b49cc6e59e6cbf24
Author: Gaute Hope <eg@gaute.vetsj.com>
Date:   Wed, 29 Jan 2014 16:44:09 +0100

ncursesw: COLOR_PAIR beats color_pair

Diffstat:
M lib/sup/colormap.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/colormap.rb b/lib/sup/colormap.rb
@@ -160,7 +160,7 @@ class Colormap
       Ncurses.init_pair id, fg, bg or raise ArgumentError,
         "couldn't initialize curses color pair #{fg}, #{bg} (key #{id})"
 
-      cp = @color_pairs[[fg, bg]] = Ncurses.color_pair(id)
+      cp = @color_pairs[[fg, bg]] = Ncurses.COLOR_PAIR(id)
       ## delete the old mapping, if it exists
       if @users[cp]
         @users[cp].each do |usym|