diff options
author | Frank Terbeck <ft@bewatermyfriend.org> | 2011-04-27 20:05:43 +0200 |
---|---|---|
committer | Frank Terbeck <ft@bewatermyfriend.org> | 2011-04-27 20:05:43 +0200 |
commit | adb5ab78f1afe011f0b39d8d0528d0ce2c07bad7 (patch) | |
tree | e37a9b9a31b050b86b0aa9ec68f0232e5b372de7 | |
parent | 8e3a365cd5328eaefa4bf2456c5cf9b41dae35b5 (diff) | |
download | zsh-adb5ab78f1afe011f0b39d8d0528d0ce2c07bad7.tar.gz zsh-adb5ab78f1afe011f0b39d8d0528d0ce2c07bad7.zip |
Fix screen completion for serial devices (Closes: #623522)
-rw-r--r-- | debian/patches/0008-fix-screen-completion.diff | 35 | ||||
-rw-r--r-- | debian/patches/series | 1 |
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 |