mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 17:40:32 +01:00
cli: fix bash completion for curser not at EOL (2)
Previous commit had an error in the following case: $ nmcli connection modify ' <TAB> id Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
93f5687d7b
commit
bbddc0e18a
1 changed files with 1 additions and 1 deletions
|
|
@ -547,7 +547,7 @@ _nmcli()
|
|||
# In case the cursor is not at the end of the line,
|
||||
# $cur consists of spaces that we want do remove.
|
||||
# For example: `nmcli connection modify id <TAB> lo`
|
||||
if [[ "$cur" =~ [[:space:]]+ ]]; then
|
||||
if [[ "$cur" =~ ^[[:space:]]+ ]]; then
|
||||
cur=''
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue