diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-03-13 17:16:18 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-03-16 18:07:32 +0100 |
commit | 71340a99dc4bf43ea110a76c0ed3bbccd8989f22 (patch) | |
tree | 0b1943626ca9d6262a740a613d1b8496dee717ef /src/cmdline.cpp | |
parent | 1c4c0acaeb284c5b65c6e117fdf2d2aa3c4dbdcb (diff) | |
download | sciteco-71340a99dc4bf43ea110a76c0ed3bbccd8989f22.tar.gz |
common parent state for all file-name-expecting commands: fixes EM tab-completions
* StateExpectFile adds no functionality (currently), but is useful for checking state types
Diffstat (limited to 'src/cmdline.cpp')
-rw-r--r-- | src/cmdline.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmdline.cpp b/src/cmdline.cpp index 122712f..e0be9cf 100644 --- a/src/cmdline.cpp +++ b/src/cmdline.cpp @@ -200,9 +200,7 @@ process_edit_cmd(gchar key) break; case '\t': - if (States::current == &States::editfile || - States::current == &States::savefile || - States::current == &States::loadqreg) { + if (States::is_file()) { gchar complete = escape_char == '{' ? ' ' : escape_char; gchar *new_chars = filename_complete(strings[0], complete); |