mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
completion: Split declaration and assignment of variables
Having them on the same line masks failure of the subcommand generating the value being assigned. Spotted by shellcheck. Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
@@ -9,9 +9,11 @@
|
||||
|
||||
__gdbus() {
|
||||
local IFS=$'\n'
|
||||
local cur="$(_get_cword :)"
|
||||
local cur
|
||||
cur="$(_get_cword :)"
|
||||
|
||||
local suggestions="$(gdbus complete "${COMP_LINE}" "${COMP_POINT}")"
|
||||
local suggestions
|
||||
suggestions="$(gdbus complete "${COMP_LINE}" "${COMP_POINT}")"
|
||||
COMPREPLY=($(compgen -W "$suggestions" -- "$cur"))
|
||||
|
||||
# Remove colon-word prefix from COMPREPLY items
|
||||
|
Reference in New Issue
Block a user