diff options
author | axel <axel@liljencrantz.se> | 2006-06-14 23:22:40 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-06-14 23:22:40 +1000 |
commit | 8fdc46a105cb6f787569dadb9932d8a49d75b891 (patch) | |
tree | 18a41d950363275e517d148a7a73f75864ec1dc7 /reader.c | |
parent | 63b02e308d7cc17d40b87bc051f7c76902bbc753 (diff) |
Add support for hishlighting potentially valid paths - default behaviour is to underline them
darcs-hash:20060614132240-ac50b-448a4f8c43007262876d1ab6b52480e46b0e2981.gz
Diffstat (limited to 'reader.c')
-rw-r--r-- | reader.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -609,8 +609,8 @@ static void remove_duplicates( array_list_t *l ) */ static void set_color_translated( int c ) { - set_color( highlight_get_color( c & 0xff ), - highlight_get_color( (c>>8)&0xff ) ); + set_color( highlight_get_color( c & 0xffff ), + highlight_get_color( (c>>16)&0xffff ) ); } int reader_interupted() @@ -1697,7 +1697,7 @@ void reader_sanity_check() void reader_replace_current_token( wchar_t *new_token ) { - const wchar_t *begin, *end; + wchar_t *begin, *end; string_buffer_t sb; int new_pos; @@ -1764,7 +1764,7 @@ static int contains( const wchar_t *needle, */ static void reset_token_history() { - const wchar_t *begin, *end; + wchar_t *begin, *end; parse_util_token_extent( data->buff, data->buff_pos, &begin, &end, 0, 0 ); if( begin ) @@ -2494,8 +2494,8 @@ wchar_t *reader_readline() if( comp_empty ) { - const wchar_t *begin, *end; - const wchar_t *token_begin, *token_end; + wchar_t *begin, *end; + wchar_t *token_begin, *token_end; wchar_t *buffcpy; int len; int cursor_steps; |