aboutsummaryrefslogtreecommitdiffhomepage
path: root/highlight.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-04 08:35:33 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-04 08:35:33 +1000
commit446272eee6c8059a7cb137e9f3f2e2e1433616db (patch)
tree5fca94be63c244f99d0688d6d7d1199e657fcaed /highlight.c
parent48ca253097e8597f680c24eda4eb0c3e40fc82c8 (diff)
Minor code tweaks, including making sure builtins are not run if an io redirection issue occurs and removing a lot commented debug code
darcs-hash:20060603223533-ac50b-204ff1fb1a4912565044e7bc4b86102a7eeba192.gz
Diffstat (limited to 'highlight.c')
-rw-r--r--highlight.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/highlight.c b/highlight.c
index a785ab24..2966bc2b 100644
--- a/highlight.c
+++ b/highlight.c
@@ -814,8 +814,7 @@ static void highlight_universal_internal( wchar_t * buff,
wchar_t inc_char = buff[pos];
int level = 0;
wchar_t *str = &buff[pos];
- int match_found=0;
-
+ int match_found=0;
while( (str >= buff) && *str)
{
@@ -847,7 +846,7 @@ void highlight_universal( wchar_t * buff,
{
int i;
- for( i=0; buff[i] != 0; i++ )
+ for( i=0; buff[i]; i++ )
color[i] = 0;
highlight_universal_internal( buff, color, pos, error );