All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Kourt <tim.a.kourt@linux.intel.com>
To: iwd@lists.01.org
Subject: [PATCH] client: Fix network name completion
Date: Fri, 25 Oct 2019 10:26:07 -0700	[thread overview]
Message-ID: <20191025172607.10840-1-tim.a.kourt@linux.intel.com> (raw)

[-- 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

             reply	other threads:[~2019-10-25 17:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-25 17:26 Tim Kourt [this message]
2019-10-25 18:20 ` [PATCH] client: Fix network name completion Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191025172607.10840-1-tim.a.kourt@linux.intel.com \
    --to=tim.a.kourt@linux.intel.com \
    --cc=iwd@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.