mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
Fix for extra space in some completions
Addresses https://github.com/fish-shell/fish-shell/issues/60
This commit is contained in:
parent
f2b5292bcb
commit
6dd0013a5d
1 changed files with 2 additions and 2 deletions
|
@ -1089,7 +1089,7 @@ static void run_pager( const wcstring &prefix, int is_quoted, const std::vector<
|
|||
{
|
||||
prefix_esc = escape_string(prefix, 1);
|
||||
}
|
||||
|
||||
|
||||
wcstring cmd = format_string(L"fish_pager -c 3 -r 4 %ls -p %ls",
|
||||
// L"valgrind --track-fds=yes --log-file=pager.txt --leak-check=full ./fish_pager %d %ls",
|
||||
is_quoted?L"-q":L"",
|
||||
|
@ -1607,7 +1607,7 @@ static int handle_completions( const std::vector<completion_t> &comp )
|
|||
0,
|
||||
0 );
|
||||
|
||||
len = &buff[data->buff_pos]-prefix_start+1;
|
||||
len = &buff[data->buff_pos]-prefix_start;
|
||||
|
||||
if( len <= PREFIX_MAX_LEN )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue