summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/patches/0008-fix-screen-completion.diff35
-rw-r--r--debian/patches/series1
2 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches/0008-fix-screen-completion.diff b/debian/patches/0008-fix-screen-completion.diff
new file mode 100644
index 000000000..e34557247
--- /dev/null
+++ b/debian/patches/0008-fix-screen-completion.diff
@@ -0,0 +1,35 @@
+This fix is included upstream:
+ <http://www.zsh.org/mla/workers/2011/msg00462.html>
+
+Index: pkg-zsh/Completion/Unix/Command/_screen
+===================================================================
+--- pkg-zsh.orig/Completion/Unix/Command/_screen 2011-04-27 20:01:05.000000000 +0200
++++ pkg-zsh/Completion/Unix/Command/_screen 2011-04-27 20:01:05.000000000 +0200
+@@ -3,6 +3,18 @@
+ local curcontext="$curcontext" state line expl
+ local scr_cmds sessions
+
++function __screen_normal() {
++ if (( CURRENT == 1 )) && [[ $PREFIX == /dev/* ]]; then
++ _path_files -g '*(%)'
++ elif (( CURRENT == 2 )) && [[ ${words[1]} == /dev/* ]]; then
++ _message "baud rate"
++ elif (( CURRENT > 2 )) && [[ ${words[1]} == /dev/* ]]; then
++ _message "no more parameters"
++ else
++ _normal "$@"
++ fi
++}
++
+ scr_cmds=(
+ acladd aclchg acldel aclgrp
+ aclumask activity addacl allpartial
+@@ -91,7 +103,7 @@
+ '-Dx: :->any-sessions' \
+ '-dx: :->any-sessions' \
+ '-X[execute command as a screen command in the specified session]:screencmd:(${scr_cmds[@]})' \
+- '*::arguments: _normal'
++ '*::arguments: __screen_normal'
+
+ if [[ -n $state ]]; then
+ case $state in
diff --git a/debian/patches/series b/debian/patches/series
index 2d6701db6..ad2dd0fa7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@
0005-lexer-fix.diff
0006-isident-false-positive.diff
0007-bashish-index-fix.diff
+0008-fix-screen-completion.diff