aboutsummaryrefslogtreecommitdiffhomepage
path: root/highlight.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-10-25 21:03:52 +1000
committerGravatar axel <axel@liljencrantz.se>2005-10-25 21:03:52 +1000
commitddcb84aa07607bbd274edb89ddc4371d8d7aa27f (patch)
tree018e34432ab3bc2da81e63765405fc1c1ed210dc /highlight.c
parentd33229324517aff751901d83aa66c6f24eba0bdc (diff)
Fix problem bug breaking completion in commands with multiple subshells
darcs-hash:20051025110352-ac50b-fff319ddcbafb722b9bc3c61aa1b250b290716a5.gz
Diffstat (limited to 'highlight.c')
-rw-r--r--highlight.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/highlight.c b/highlight.c
index e3783eda..51d5c885 100644
--- a/highlight.c
+++ b/highlight.c
@@ -357,7 +357,7 @@ void highlight_shell( wchar_t * buff,
/*
Locate and syntax highlight subshells recursively
*/
-
+
wchar_t *buffcpy = wcsdup( buff );
wchar_t *subpos=buffcpy;
int done=0;
@@ -386,8 +386,9 @@ void highlight_shell( wchar_t * buff,
break;
subpos = end+1;
+
}
- free( buffcpy );
+ free( buffcpy);
last_val=0;