diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-06 23:34:55 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-06 23:34:55 -0700 |
commit | 6eb66770a499444edf15810e4f1fcf7694b71430 (patch) | |
tree | bf8c21f1cd1ee75cc40d285368a5a93fd84b7651 /highlight.cpp | |
parent | 84729c4dfa6d16cf81aa23c249d0ffb030549e08 (diff) |
Fix to make completions non-authoritative by default, which is why unknown options were always colored like errors (e.g. --rebase)
Diffstat (limited to 'highlight.cpp')
-rw-r--r-- | highlight.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/highlight.cpp b/highlight.cpp index e0c99778..c232c400 100644 --- a/highlight.cpp +++ b/highlight.cpp @@ -935,7 +935,7 @@ static void tokenize( const wchar_t * const buff, std::vector<int> &color, const } else if( accept_switches ) { - if( complete_is_valid_option( last_cmd.c_str(), param, error, false /* no autoload */ ) ) + if( complete_is_valid_option( last_cmd, param, error, false /* no autoload */ ) ) color.at(tok_get_pos( &tok )) = HIGHLIGHT_PARAM; else color.at(tok_get_pos( &tok )) = HIGHLIGHT_ERROR; |