tuxpaint-completion.bash - use _have no have

For https://sourceforge.net/p/tuxpaint/bugs/290/
This commit is contained in:
Bill Kendrick 2024-06-11 23:33:34 -07:00
parent 4c18bff7ed
commit 71959d502e
2 changed files with 9 additions and 4 deletions

View file

@ -6,7 +6,7 @@ Copyright (c) 2002-2024
Various contributors (see below, and AUTHORS.txt)
https://tuxpaint.org/
2024.June.6 (0.9.33)
2024.June.11 (0.9.33)
* New Magic Tools:
----------------
* Dither & Dither (Keep Color): Replaces all or part of a drawing
@ -109,6 +109,11 @@ https://tuxpaint.org/
* Make screen refresh more snappy on macOS.
Mark Kim <markuskimius@gmail.com>
* Replace `have` with `_have` in Tux Paint's BASH completion script.
Closes https://sourceforge.net/p/tuxpaint/bugs/290/
(h/t Jozef Riha for reporting)
Bill Kendrick <bill@newbreedsoftware.com>
* Ports & Building:
-----------------
* Simplify the process of building the universal bundle on the macOS by

View file

@ -3,7 +3,7 @@
# Bill Kendrick <bill@newbreedsoftware.com>; https://tuxpaint.org/
# Based on inkscape's completion file, by allali@univ-mlv.fr
#
# Last modified 2024-06-02
# Last modified 2024-06-11
#
# $Id$
@ -16,7 +16,7 @@
# a way to hint to the user, and allow completion, for values after the "="
# -bjk 2023.12.29
have tuxpaint &&
_have tuxpaint &&
_tuxpaint()
{
local cur
@ -126,4 +126,4 @@ _tuxpaint()
fi
}
[ "${have:-}" ] && complete -F _tuxpaint $filenames tuxpaint
complete -F _tuxpaint $filenames tuxpaint