* usr/bin/byobu-ctrl-a:

- fix regression in byobu-screen ctrl-a handling
This commit is contained in:
Dustin Kirkland 2012-02-16 22:29:19 -06:00
commit f0646edc0e
2 changed files with 5 additions and 3 deletions

2
debian/changelog vendored
View file

@ -3,6 +3,8 @@ byobu (5.12) unreleased; urgency=low
* usr/share/byobu/keybindings/f-keys,
usr/share/byobu/keybindings/screen-escape-keys:
- keybindings for screen to match tmux for consistency
* usr/bin/byobu-ctrl-a:
- fix regression in byobu-screen ctrl-a handling
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 15 Feb 2012 22:22:12 -0600

View file

@ -73,7 +73,7 @@ case "$bind_to" in
emacs)
case "$BYOBU_BACKEND" in
screen)
$BYOBU_SED -i -e "/^register a /d" -e "/^bindkey \"^A\"/d" -e "/^escape escape \^Aa/d" "$keybindings"
$BYOBU_SED -i -e "/^register x /d" -e "/^bindkey \"^A\"/d" -e "/^escape escape \^Aa/d" "$keybindings"
echo 'bindkey "^A"' >> "$keybindings"
$BYOBU_BACKEND -X at 0 source "$BYOBU_CONFIG_DIR/profile"
;;
@ -89,9 +89,9 @@ case "$bind_to" in
screen)
case "$BYOBU_BACKEND" in
screen)
$BYOBU_SED -i -e "/^register a /d" -e "/^bindkey \"^A\"/d" -e "/^escape /d" "$keybindings"
$BYOBU_SED -i -e "/^register x /d" -e "/^bindkey \"^A\"/d" -e "/^escape /d" "$keybindings"
echo 'escape "^Aa"' >> "$keybindings"
echo 'register a "^A"' >> "$keybindings"
echo 'register x "^A"' >> "$keybindings"
echo 'bindkey "^A"' >> "$keybindings"
$BYOBU_BACKEND -X at 0 source "$BYOBU_CONFIG_DIR/profile"
;;