diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-24 21:50:54 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-24 21:50:54 +0100 |
commit | 73037b68bd2769d5e8bd42dcc1e5a7b3d5f0d7b9 (patch) | |
tree | a27a91bb61c72c04e08c5fd8093524b31186e272 /cmdline.cpp | |
parent | d03c4c9cc7624ff3e4d0407c7ed58c1c4bb9a337 (diff) | |
download | sciteco-73037b68bd2769d5e8bd42dcc1e5a7b3d5f0d7b9.tar.gz |
do not try to complete string argument if it is in "{" mode
Diffstat (limited to 'cmdline.cpp')
-rw-r--r-- | cmdline.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdline.cpp b/cmdline.cpp index 674000b..80cd2d7 100644 --- a/cmdline.cpp +++ b/cmdline.cpp @@ -122,8 +122,9 @@ process_edit_cmd(gchar key) if (States::current == &States::editfile || States::current == &States::savefile || States::current == &States::loadqreg) { + gchar complete = escape_char == '{' ? ' ' : escape_char; gchar *new_chars = filename_complete(strings[0], - escape_char); + complete); if (new_chars) g_stpcpy(insert, new_chars); g_free(new_chars); |