Ron Yorston 64e967fabb lineedit: fix matching of directories when searching PATH
Commit 8baa643a3 (lineedit: match local directories when searching
PATH) included subdirectories of the current directory in the search
when tab-completing commands.

Unfortunately a short time later commit 1d180cd74 (lineedit: use
strncmp instead of is_prefixed_with (we know the length)) broke
this feature by returning an incorrect length for the array of paths.

Fix the length and reinstate matching of subdirectories.

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2023-04-25 16:47:22 +02:00
..
2022-08-30 17:12:34 +02:00
2021-06-22 15:28:34 +02:00
2020-12-14 18:25:28 +01:00
2020-12-17 11:22:44 +01:00
2022-08-27 19:56:21 +02:00
2021-02-03 20:43:07 +01:00
2020-10-01 03:07:22 +02:00
2021-02-03 20:52:40 +01:00
2018-07-17 15:04:17 +02:00
2021-09-17 00:47:23 +02:00
2022-01-18 00:36:42 +01:00
2020-12-17 20:53:43 +01:00

Please see the LICENSE file for copyright information (GPLv2)

libbb is BusyBox's utility library.  All of this stuff used to be stuffed into
a single file named utility.c.  When I split utility.c to create libbb, some of
the very oldest stuff ended up without their original copyright and licensing
information (which is now lost in the mists of time).  If you see something
that you wrote that is mis-attributed, do let me know so we can fix that up.

	Erik Andersen
	<andersen@codepoet.org>