Fix to not show thread debugging warning when entering characters like "~%". expand_string2() now uses it's own parser instead of principal_parser. Added PARSER_TYPE_ERRORS_ONLY in parser_type_t.

This commit is contained in:
Siteshwar Vashisht
2012-01-30 23:58:30 +05:30
parent f988dcd6f9
commit cd7d1f2bfe
3 changed files with 12 additions and 11 deletions

View File

@@ -175,7 +175,7 @@ int highlight_get_color( int highlight )
size_t i;
int idx=0;
int result = 0;
if( highlight < 0 )
return FISH_COLOR_NORMAL;
if( highlight >= (1<<VAR_COUNT) )