diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-21 17:55:56 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-21 17:55:56 -0800 |
commit | 4ccc197451821c5b4ee64f8dd31567d4ea4ba00f (patch) | |
tree | e5837b7f260a81aed509c949dc9d3829afda8248 /highlight.h | |
parent | 237cf19a7752602025c5eb131e47088882a59db4 (diff) |
Fix to change highlighting functions to take wcstring& instead of const wchar_t *
Diffstat (limited to 'highlight.h')
-rw-r--r-- | highlight.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/highlight.h b/highlight.h index 64697939..c82d49ab 100644 --- a/highlight.h +++ b/highlight.h @@ -80,7 +80,7 @@ \param pos the cursor position. Used for quote matching, etc. \param error a list in which a description of each error will be inserted. May be 0, in whcich case no error descriptions will be generated. */ -void highlight_shell( const wchar_t *buff, std::vector<int> &color, int pos, wcstring_list_t *error, const env_vars &vars ); +void highlight_shell( const wcstring &buffstr, std::vector<int> &color, int pos, wcstring_list_t *error, const env_vars &vars ); /** Perform syntax highlighting for the text in buff. Matching quotes and paranthesis are highlighted. The result is @@ -92,7 +92,7 @@ void highlight_shell( const wchar_t *buff, std::vector<int> &color, int pos, wcs \param pos the cursor position. Used for quote matching, etc. \param error a list in which a description of each error will be inserted. May be 0, in whcich case no error descriptions will be generated. */ -void highlight_universal( const wchar_t *buff, std::vector<int> &color, int pos, wcstring_list_t *error, const env_vars &vars ); +void highlight_universal( const wcstring &buffstr, std::vector<int> &color, int pos, wcstring_list_t *error, const env_vars &vars ); /** Translate from HIGHLIGHT_* to FISH_COLOR_* according to environment |