Add the possibility to set the cursor position using the commandline builtin

darcs-hash:20061004213948-ac50b-3f673edeb01390bb3f280812d90bc8469f2f8ba8.gz
This commit is contained in:
axel
2006-10-05 07:39:48 +10:00
parent 7d73349889
commit 91c745e4b5
6 changed files with 86 additions and 39 deletions

View File

@@ -1253,8 +1253,6 @@ static int handle_completions( array_list_t *comp )
columns, then four, etc. completion_try_print always
succeeds with one column.
*/
/*
*/
}
free( prefix );
@@ -1714,11 +1712,13 @@ void reader_set_buffer( wchar_t *b, int p )
data->buff_len = l;
check_size();
wcscpy( data->buff, b );
if( data->buff != b )
wcscpy( data->buff, b );
if( p>=0 )
{
data->buff_pos=p;
data->buff_pos=mini( p, l );
}
else
{