All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] client: Fix network name completion
@ 2019-10-25 17:26 Tim Kourt
  2019-10-25 18:20 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Kourt @ 2019-10-25 17:26 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

Exclude the network names that are shorter then the query text
from the autocompletion network name list.
---
 client/network.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/client/network.c b/client/network.c
index 023a505c..b4ce3235 100644
--- a/client/network.c
+++ b/client/network.c
@@ -228,6 +228,9 @@ static bool match_by_partial_name(const void *a, const void *b)
 		return false;
 	}
 
+	if (*text)
+		return false;
+
 	return true;
 }
 
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] client: Fix network name completion
  2019-10-25 17:26 [PATCH] client: Fix network name completion Tim Kourt
@ 2019-10-25 18:20 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2019-10-25 18:20 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

Hi Tim,

On 10/25/19 12:26 PM, Tim Kourt wrote:
> Exclude the network names that are shorter then the query text
> from the autocompletion network name list.
> ---
>   client/network.c | 3 +++
>   1 file changed, 3 insertions(+)

Applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-25 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-25 17:26 [PATCH] client: Fix network name completion Tim Kourt
2019-10-25 18:20 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.