mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Fixed a bug caused while highlighting double quoted strings. For e.g. ls "abc" shows up as invalid write for color of closing quote in valgrind.
This commit is contained in:
parent
382ffe9b6a
commit
e8af86017a
1 changed files with 1 additions and 1 deletions
|
@ -2443,7 +2443,7 @@ static void reader_super_highlight_me_plenty( int match_highlight_pos, array_lis
|
||||||
{
|
{
|
||||||
reader_sanity_check();
|
reader_sanity_check();
|
||||||
|
|
||||||
int *color = (int *)calloc(data->buff_count, sizeof *color);
|
int *color = (int *)calloc(data->buff_count + 1, sizeof *color);
|
||||||
background_highlight_context_t *ctx = new background_highlight_context_t(data->command_line, color, match_highlight_pos, data->highlight_function);
|
background_highlight_context_t *ctx = new background_highlight_context_t(data->command_line, color, match_highlight_pos, data->highlight_function);
|
||||||
#if 1
|
#if 1
|
||||||
iothread_perform(threaded_highlight, highlight_complete, ctx);
|
iothread_perform(threaded_highlight, highlight_complete, ctx);
|
||||||
|
|
Loading…
Reference in a new issue