Let sudo-command-line() do something sensible on an empty buffer.
authorFrank Terbeck <ft@grml.org>
Thu, 16 Aug 2007 16:48:32 +0000 (18:48 +0200)
committerFrank Terbeck <ft@grml.org>
Thu, 16 Aug 2007 16:48:32 +0000 (18:48 +0200)
commitb37e047d34cfcc875a7f9c1c8b55af438fc737bd
tree5e821384aee5f11cda0d29d53ede2e0e0bce31cb
parent8b697421bbe92dc33e30ad56413eec98c933af72
Let sudo-command-line() do something sensible on an empty buffer.
When the buffer is empty, assume that the user wants to rerun the previous
command, prepended by 'sudo '. Also changed _sudo-command-line() to
sudo-command-line(). Per convention functions starting with underscore are
usually completion widgets (and it's really not needed here).
etc/zsh/zshrc