File: fix_autocomplete.diff

package info (click to toggle)
zeitgeist 0.9.14-2.2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 10,500 kB
  • ctags: 4,031
  • sloc: ansic: 16,835; sh: 11,484; xml: 8,822; python: 8,196; cpp: 2,970; sql: 1,192; makefile: 941
file content (18 lines) | stat: -rw-r--r-- 736 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Index: zeitgeist-0.9.14/data/completions/zeitgeist-daemon
===================================================================
--- zeitgeist-0.9.14.orig/data/completions/zeitgeist-daemon	2013-06-17 08:40:08.000000000 +0200
+++ zeitgeist-0.9.14/data/completions/zeitgeist-daemon	2013-10-25 23:16:30.874139250 +0200
@@ -5,10 +5,10 @@
 #
 # By Siegfried-Angel Gevatter Pujals <siegfried@gevatter.com>
 
-have zeitgeist-daemon &&
+_have zeitgeist-daemon &&
 _zeitgeist_daemon()
 {
 	local cur=${COMP_WORDS[COMP_CWORD]}
 	COMPREPLY=($(compgen -W "`zeitgeist-daemon --shell-completion`" -- $cur))
-}
-[ "${have:-}" ] && complete -F _zeitgeist_daemon -o default zeitgeist-daemon
+} &&
+complete -F _zeitgeist_daemon -o default zeitgeist-daemon