diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-05-29 17:30:47 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-05-29 17:30:47 +0200 |
commit | 6c62ccc436d972a872616c187d460ed61c8bc0d2 (patch) | |
tree | e7a5aca9263790283a90c975baec13daf96a7e39 /src/cmdline.h | |
parent | b65eee089f048e04217009e5dbe70aef3f463230 (diff) | |
download | sciteco-6c62ccc436d972a872616c187d460ed61c8bc0d2.tar.gz |
Modified ^W in string (and file name) arguments: ensure that we always rub out beyond empty arguments
* it was annoying not to be able to rub out anything with ^W if the current string
argument was empty.
* Now, the special file name and string argument handling for ^W is effective
only if the current argument is non-empty, else we fall back to the rub-out-command
behaviour.
* So now, if you press ^W in a string argument, it is rubbed out until empty and
on the next ^W press, the entire command will be rubbed out.
Diffstat (limited to 'src/cmdline.h')
-rw-r--r-- | src/cmdline.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmdline.h b/src/cmdline.h index 11384c1..40a794a 100644 --- a/src/cmdline.h +++ b/src/cmdline.h @@ -79,6 +79,14 @@ private: } } + inline void + rubout_command(void) + { + do + rubout(); + while (States::current != &States::start); + } + void insert(const gchar *src = NULL); inline void insert(gchar key) |