Removed the "don't highlight with stale data" code, that caused "flashing" as we typed

This commit is contained in:
ridiculousfish
2012-02-03 20:06:48 -08:00
parent 5c205c43d1
commit 7fcf25a78f

View File

@@ -2461,13 +2461,6 @@ static int threaded_highlight(void *ctx_ptr) {
*/
static void reader_super_highlight_me_plenty( int match_highlight_pos, array_list_t *error )
{
/* Ensure we don't repaint with stale data */
size_t i;
for (i=0; i < data->buff_sz; i++) {
data->color[i] = HIGHLIGHT_NORMAL;
}
int *color = (int *)calloc(data->buff_sz, sizeof *color);
background_highlight_context_t *ctx = new background_highlight_context_t(data->buff, color, match_highlight_pos, data->highlight_function);
#if 1