diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-16 00:24:27 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-16 00:24:27 -0800 |
commit | a08450bcb6050cc630d87ae6d7d5f203f8eeca62 (patch) | |
tree | 1e49e402f2c5e50aadc8e4d2367f1d1abad0626d /wutil.cpp | |
parent | a92d9d442b5b4f8b3de0c2eef3a9d7a498a36aa8 (diff) |
Changes to make autosuggestion smarter about not suggesting commands that could never succeed.
Diffstat (limited to 'wutil.cpp')
-rw-r--r-- | wutil.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -191,6 +191,12 @@ int waccess(const wchar_t *file_name, int mode) return access(tmp.c_str(), mode); } +int wunlink(const wchar_t *file_name) +{ + cstring tmp = wcs2string(file_name); + return unlink(tmp.c_str()); +} + void wperror(const wchar_t *s) { int e = errno; |