aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.c
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-10-28 19:08:40 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-10-28 19:08:40 +1000
commit348e991d7c5616821dd13fa34cea7f2a18b5e869 (patch)
tree962d57b8e91869dc1c8601d90cd16bb5991e84a6 /reader.c
parenta1af86cb6bc18306cd4badb126a54df3eeaf9349 (diff)
Indentation fixes, add a few comments, spelling, etc.
darcs-hash:20071028090840-75c98-2ae076441517cd7a0d8172fad28edaf6f034b70c.gz
Diffstat (limited to 'reader.c')
-rw-r--r--reader.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/reader.c b/reader.c
index 19b32130..3ae6db52 100644
--- a/reader.c
+++ b/reader.c
@@ -1114,7 +1114,7 @@ static void run_pager( wchar_t *prefix, int is_quoted, array_list_t *comp )
{
int base_len=-1;
- completion_t *el = (completion_t *)al_get( comp, i );
+ completion_t *el = (completion_t *)al_get( comp, i );
wchar_t *foo=0;
wchar_t *baz=0;
@@ -1129,11 +1129,8 @@ static void run_pager( wchar_t *prefix, int is_quoted, array_list_t *comp )
parse_util_token_extent( data->buff, data->buff_pos, &begin, 0, 0, 0 );
base_len = data->buff_pos - (begin-data->buff);
-
}
-
-
foo = escape( el->completion + base_len, ESCAPE_ALL | ESCAPE_NO_QUOTED );
}
else
@@ -1294,6 +1291,7 @@ static int handle_completions( array_list_t *comp )
}
done = 1;
len = 1;
+ break;
}
}