mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
Add the possibility to set the cursor position using the commandline builtin
darcs-hash:20061004213948-ac50b-3f673edeb01390bb3f280812d90bc8469f2f8ba8.gz
This commit is contained in:
8
reader.c
8
reader.c
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user