aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-10-02 01:59:18 +1000
committerGravatar axel <axel@liljencrantz.se>2006-10-02 01:59:18 +1000
commit2839f5e567e21a15850c3adfa2cc3cd1d7372ea9 (patch)
tree38a2b12c52a674962f1f659fc0bb91357405becb /env.c
parent67c820cee8e9397f937f2158098848cc06247022 (diff)
Minor comment and documentation edits
darcs-hash:20061001155918-ac50b-8b5b4f5dbd8334bac1c0dc77fa18c8f3cfb4a878.gz
Diffstat (limited to 'env.c')
-rw-r--r--env.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/env.c b/env.c
index 8a7d2459..ce9b1fc1 100644
--- a/env.c
+++ b/env.c
@@ -693,7 +693,7 @@ int env_set( const wchar_t *key,
env_universal_set( key, val, export );
is_universal = 1;
-
+
}
else
{
@@ -721,6 +721,7 @@ int env_set( const wchar_t *key,
(var_mode & ENV_GLOBAL) )
{
node = ( var_mode & ENV_GLOBAL )?global_env:top;
+
}
else
{
@@ -946,7 +947,7 @@ wchar_t *env_get( const wchar_t *key )
wchar_t *item;
CHECK( key, 0 );
-
+
if( wcscmp( key, L"history" ) == 0 )
{
wchar_t *current;
@@ -966,10 +967,6 @@ wchar_t *env_get( const wchar_t *key )
wchar_t *next = history_get( i-add_current );
if( !next )
{
- /*
- This is not an error - it simply means the user has
- a short history
- */
break;
}
@@ -977,6 +974,7 @@ wchar_t *env_get( const wchar_t *key )
sb_append( &dyn_var, ARRAY_SEP_STR );
sb_append( &dyn_var, next );
}
+
return (wchar_t *)dyn_var.buff;
}
else if( wcscmp( key, L"COLUMNS" )==0 )