diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-11-24 22:57:49 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-11-24 22:58:39 -0800 |
commit | 9f6223311e7ae6a9d6d21e33bf0fa67822da6fb6 (patch) | |
tree | 401878fd6bfdb121ec41e977af1defe6a001f6f0 /builtin_complete.cpp | |
parent | 90b78326d393d2490e43491a93d8db4b449b972e (diff) |
Large cleanup and refactoring of unescape() function.
Diffstat (limited to 'builtin_complete.cpp')
-rw-r--r-- | builtin_complete.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin_complete.cpp b/builtin_complete.cpp index 186fb9bc..4bfab1b7 100644 --- a/builtin_complete.cpp +++ b/builtin_complete.cpp @@ -423,8 +423,8 @@ static int builtin_complete(parser_t &parser, wchar_t **argv) case 'p': case 'c': { - wcstring tmp = woptarg; - if (unescape_string(tmp, 1)) + wcstring tmp; + if (unescape_string(woptarg, &tmp, UNESCAPE_SPECIAL)) { if (opt=='p') path.push_back(tmp); |