diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-17 15:55:54 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-17 15:55:54 -0800 |
commit | 8f1423946fd3ab9d5bca168de7fb12b9c397b034 (patch) | |
tree | 68031b5db0c159b8a4223f8c89b0d86fb2bf61d6 /highlight.cpp | |
parent | 51da4856e2ff124d8d5ad7a4a6ca844c81825133 (diff) |
Fix a crash when using quotes due to wgettext thread safety issues.
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 2d447478..059ccbfe 100644 --- a/highlight.cpp +++ b/highlight.cpp @@ -557,7 +557,7 @@ static void tokenize( const wchar_t * const buff, int * const color, const int p color[i] = -1; tokenizer tok; - for( tok_init( &tok, buff, TOK_SHOW_COMMENTS ); + for( tok_init( &tok, buff, TOK_SHOW_COMMENTS | TOK_SQUASH_ERRORS ); tok_has_next( &tok ); tok_next( &tok ) ) { |