commit: Let sudo-command-line() do something sensible on an empty buffer.

Michael Prokop mika at repos.grml.org
Sun Aug 19 10:53:16 CEST 2007


Changeset available online at:

http://hg.grml.org/grml-etc-core/rev/e6d496f8dc6d9127c394a4304d9d3c0a8e0b9b15


changeset:   235:e6d496f8dc6d9127c394a4304d9d3c0a8e0b9b15
user:        Frank Terbeck <ft at grml.org>
date:        Thu Aug 16 18:48:32 2007 +0200
files:       etc/zsh/zshrc
description:
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).




More information about the Git-commits mailing list