aboutsummaryrefslogtreecommitdiffhomepage
path: root/highlight.h
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 /highlight.h
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 'highlight.h')
-rw-r--r--highlight.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/highlight.h b/highlight.h
index f7ec8877..d6ca36b6 100644
--- a/highlight.h
+++ b/highlight.h
@@ -64,6 +64,11 @@
#define HIGHLIGHT_VALID_PATH 0x1000
/**
+ Internal value representing highlighting an autosuggestion
+*/
+#define HIGHLIGHT_AUTOSUGGESTION 0x2000
+
+/**
Perform syntax highlighting for the shell commands in buff. The result is
stored in the color array as a color_code from the HIGHLIGHT_ enum
for each character in buff.
@@ -97,6 +102,6 @@ void highlight_universal( const wchar_t *buff, int *color, int pos, array_list_t
call to highlight_get_color( HIGHLIGHT_ERROR) will return
FISH_COLOR_RED.
*/
-int highlight_get_color( int highlight );
+int highlight_get_color( int highlight, bool is_background );
#endif