aboutsummaryrefslogtreecommitdiffhomepage
path: root/screen.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-06 20:14:19 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-06 20:14:19 -0800
commit382ffe9b6af14a8a42a4dfc4f93338a956ea9c27 (patch)
tree3d3ed84253003884c4cd80992a4fde0c3bde0851 /screen.cpp
parente5b34d5cd56081c6c29950f61de514f586e62643 (diff)
Added autosuggestion color variable fish_color_autosuggestion
Fixed that nasty bug where fish would apply a color to both the foreground and background (yuck)
Diffstat (limited to 'screen.cpp')
-rw-r--r--screen.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/screen.cpp b/screen.cpp
index 9e785d51..e74d4e8b 100644
--- a/screen.cpp
+++ b/screen.cpp
@@ -529,8 +529,9 @@ static void s_set_color( screen_t *s, buffer_t *b, int c )
output_set_writer( &s_writeb );
s_writeb_buffer = b;
- set_color( highlight_get_color( c & 0xffff ),
- highlight_get_color( (c>>16)&0xffff ) );
+ unsigned int uc = (unsigned int)c;
+ set_color( highlight_get_color( uc & 0xffff, false ),
+ highlight_get_color( (uc>>16)&0xffff, true ) );
output_set_writer( writer_old );