fix regression found by hondza: the full path was shown when tab-completing
This commit is contained in:
3
edit.c
3
edit.c
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.213 2011/06/04 15:06:50 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.214 2011/06/04 15:11:29 tg Exp $");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* in later versions we might use libtermcap for this, but since external
|
* in later versions we might use libtermcap for this, but since external
|
||||||
@ -596,6 +596,7 @@ x_cf_glob(int *flagsp, const char *buf, int buflen, int pos, int *startp,
|
|||||||
*wordsp = NULL;
|
*wordsp = NULL;
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
if (is_command)
|
||||||
*flagsp |= XCF_IS_COMMAND;
|
*flagsp |= XCF_IS_COMMAND;
|
||||||
*wordsp = words;
|
*wordsp = words;
|
||||||
*endp = *startp + len;
|
*endp = *startp + len;
|
||||||
|
Reference in New Issue
Block a user