diff options
author | liljencrantz <liljencrantz@gmail.com> | 2007-09-22 01:17:23 +1000 |
---|---|---|
committer | liljencrantz <liljencrantz@gmail.com> | 2007-09-22 01:17:23 +1000 |
commit | 65d223e672c4e298a56a9d342c7d634621372bc7 (patch) | |
tree | b4d28615d128f84cfb498fe1f6b8bfac3e7e7a5e | |
parent | c0aac8996d57e5a8b3a5d8b2f6a4865858e23d48 (diff) |
Make sure all keybinding scripts repaint properly
darcs-hash:20070921151723-75c98-83f2fe86ace0f6e567db26faa4d94665971af145.gz
-rw-r--r-- | etc/fish_inputrc | 8 | ||||
-rw-r--r-- | share/functions/__fish_list_current_token.fish | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/etc/fish_inputrc b/etc/fish_inputrc index fefdd55e..981b0abe 100644 --- a/etc/fish_inputrc +++ b/etc/fish_inputrc @@ -9,15 +9,15 @@ $include /etc/inputrc $if fish "\M-l": __fish_list_current_token - "\M-w": set tok (commandline -pt); if test $tok[1]; whatis $tok[1]; end - "\C-l": clear + "\M-w": set tok (commandline -pt); if test $tok[1]; whatis $tok[1]; commandline -f repaint; end + "\C-l": clear; commandline -f repaint "\C-c": delete-line "\C-u": backward-kill-line "\M-d": kill-word "\C-w": backward-kill-word "\M-k": dump-functions - "\M-d": if test -z (commandline); dirh; else; commandline -f kill-word; end - "\C-d": delete-or-exit + "\M-d": if test -z (commandline); dirh; commandline -f repaint; else; commandline -f kill-word; end + "\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 "\M-p": if commandline -j|grep -v 'less *$' >/dev/null; commandline -aj "|less;"; end $endif diff --git a/share/functions/__fish_list_current_token.fish b/share/functions/__fish_list_current_token.fish index b31aac40..878ac9d1 100644 --- a/share/functions/__fish_list_current_token.fish +++ b/share/functions/__fish_list_current_token.fish @@ -16,5 +16,6 @@ function __fish_list_current_token -d "List contents of token under the cursor i ls end end + commandline -f repaint end |