This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- screen 2012-01-31 21:24:46.000000000 -0800 | |
+++ screen-new 2012-01-31 21:24:49.000000000 -0800 | |
@@ -12,7 +12,7 @@ | |
fi | |
COMPREPLY=( $( command screen -ls | sed -ne \ | |
- 's|^['$'\t'']\+\('"$cur"'[0-9]\+\.[^'$'\t'']\+\)'"$pattern"'$|\1|p' ) ) | |
+ '/^\t'$cur[0-9]*'\..*\|^\t[0-9]*\.'$cur'.*\|^\t'$cur'.*/!d;s|^['$'\t'']\+\([0-9]*\.[^'$'\t'']\+\).*'$pattern'.*$|\1|p' ) ) | |
} && | |
_screen() |