mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
More changes to fish pager to fix regressions. It didn't actually work.
This commit is contained in:
parent
19858c574d
commit
7e1b15a0cc
@ -901,14 +901,13 @@ static void join_completions( wcstring_list_t lst )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
const wchar_t *old = lst.at(i).c_str();
|
const wchar_t *old = lst.at(i).c_str();
|
||||||
wchar_t *old_end = wcschr( old, COMPLETE_SEP );
|
const wchar_t *old_end = wcschr( old, COMPLETE_SEP );
|
||||||
|
|
||||||
if( old_end )
|
if( old_end )
|
||||||
{
|
{
|
||||||
*old_end = 0;
|
|
||||||
|
|
||||||
wcstring foo;
|
wcstring foo;
|
||||||
foo.append(old);
|
foo.append(old, old_end - old);
|
||||||
foo.push_back(COMPLETE_ITEM_SEP);
|
foo.push_back(COMPLETE_ITEM_SEP);
|
||||||
foo.append(item);
|
foo.append(item);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user