Make sure all keybinding scripts repaint properly

darcs-hash:20070921151723-75c98-83f2fe86ace0f6e567db26faa4d94665971af145.gz
This commit is contained in:
liljencrantz 2007-09-22 01:17:23 +10:00
parent c0aac8996d
commit 65d223e672
2 changed files with 5 additions and 4 deletions

View file

@ -9,14 +9,14 @@ $include /etc/inputrc
$if fish $if fish
"\M-l": __fish_list_current_token "\M-l": __fish_list_current_token
"\M-w": set tok (commandline -pt); if test $tok[1]; whatis $tok[1]; end "\M-w": set tok (commandline -pt); if test $tok[1]; whatis $tok[1]; commandline -f repaint; end
"\C-l": clear "\C-l": clear; commandline -f repaint
"\C-c": delete-line "\C-c": delete-line
"\C-u": backward-kill-line "\C-u": backward-kill-line
"\M-d": kill-word "\M-d": kill-word
"\C-w": backward-kill-word "\C-w": backward-kill-word
"\M-k": dump-functions "\M-k": dump-functions
"\M-d": if test -z (commandline); dirh; else; commandline -f kill-word; end "\M-d": if test -z (commandline); dirh; commandline -f repaint; else; commandline -f kill-word; end
"\C-d": delete-or-exit "\C-d": delete-or-exit
# This will make sure the output of the current command is paged using the less pager when you press Meta-p # This will make sure the output of the current command is paged using the less pager when you press Meta-p
"\M-p": if commandline -j|grep -v 'less *$' >/dev/null; commandline -aj "|less;"; end "\M-p": if commandline -j|grep -v 'less *$' >/dev/null; commandline -aj "|less;"; end

View file

@ -16,5 +16,6 @@ function __fish_list_current_token -d "List contents of token under the cursor i
ls ls
end end
end end
commandline -f repaint
end end