fix(diff): fix incorrect item size of dout_ga (#34338)

Related 267494151b
This commit is contained in:
zeertzjq
2025-06-06 12:34:28 +08:00
committed by GitHub
parent 552983515f
commit 60d0b7d0c3
4 changed files with 61 additions and 1 deletions

View File

@ -2925,7 +2925,7 @@ static void diff_find_change_inline_diff(diff_T *dp)
const int save_diff_algorithm = diff_algorithm;
diffio_T dio = { 0 };
ga_init(&dio.dio_diff.dout_ga, sizeof(char *), 1000);
ga_init(&dio.dio_diff.dout_ga, sizeof(diffhunk_T), 1000);
// inline diff only supports internal algo
dio.dio_internal = true;