aboutsummaryrefslogtreecommitdiffhomepage
path: root/highlight.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-09 02:33:42 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-09 02:33:42 -0700
commit9bcc7df96f2e40e54fb1cebdb6df5de4139b0ed9 (patch)
tree20445bda332b490515445acee5a7c79a45ed1db8 /highlight.cpp
parent4bd63020ca897b4b65d74469a0036451a2e23fa4 (diff)
Lots of modernization changed
Removed wcsdupcat
Diffstat (limited to 'highlight.cpp')
-rw-r--r--highlight.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/highlight.cpp b/highlight.cpp
index fdcd6f38..15fc0766 100644
--- a/highlight.cpp
+++ b/highlight.cpp
@@ -807,7 +807,7 @@ bool autosuggest_special_validate_from_history(const wcstring &str, const wcstri
if (is_help) {
suggestionOK = false;
} else {
- wchar_t *path = path_allocate_cdpath(dir.c_str(), working_directory.c_str());
+ wchar_t *path = path_allocate_cdpath(dir, working_directory.c_str());
if (path == NULL) {
suggestionOK = false;
} else if (paths_are_same_file(working_directory, path)) {
@@ -1237,8 +1237,7 @@ void highlight_shell( const wcstring &buff, std::vector<int> &color, int pos, wc
//our subcolors start at color + (begin-subbuff)+1
size_t start = begin - subbuff + 1, len = wcslen(begin + 1);
- std::vector<int> subcolors;
- subcolors.resize(len, -1);
+ std::vector<int> subcolors(len, -1);
highlight_shell( begin+1, subcolors, -1, error, vars );