mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
refactor(IWYU): fix includes for cmdhist.h (#26324)
This commit is contained in:
@@ -1117,7 +1117,7 @@ static void shada_read(ShaDaReadDef *const sd_reader, const int flags)
|
||||
}
|
||||
HistoryMergerState hms[HIST_COUNT];
|
||||
if (srni_flags & kSDReadHistory) {
|
||||
for (HistoryType i = 0; i < HIST_COUNT; i++) {
|
||||
for (int i = 0; i < HIST_COUNT; i++) {
|
||||
hms_init(&hms[i], (uint8_t)i, (size_t)p_hi, true, true);
|
||||
}
|
||||
}
|
||||
@@ -1381,7 +1381,7 @@ shada_read_main_cycle_end:
|
||||
// memory for the history string itself and separator character which
|
||||
// may be assigned right away.
|
||||
if (srni_flags & kSDReadHistory) {
|
||||
for (HistoryType i = 0; i < HIST_COUNT; i++) {
|
||||
for (int i = 0; i < HIST_COUNT; i++) {
|
||||
hms_insert_whole_neovim_history(&hms[i]);
|
||||
clr_history(i);
|
||||
int *new_hisidx;
|
||||
@@ -2499,7 +2499,7 @@ static ShaDaWriteResult shada_write(ShaDaWriteDef *const sd_writer, ShaDaReadDef
|
||||
bool dump_history = false;
|
||||
|
||||
// Initialize history merger
|
||||
for (HistoryType i = 0; i < HIST_COUNT; i++) {
|
||||
for (int i = 0; i < HIST_COUNT; i++) {
|
||||
int num_saved = get_shada_parameter(hist_type2char(i));
|
||||
if (num_saved == -1) {
|
||||
num_saved = (int)p_hi;
|
||||
@@ -2893,7 +2893,7 @@ static ShaDaWriteResult shada_write(ShaDaWriteDef *const sd_writer, ShaDaReadDef
|
||||
#undef PACK_WMS_ARRAY
|
||||
|
||||
if (dump_history) {
|
||||
for (size_t i = 0; i < HIST_COUNT; i++) {
|
||||
for (int i = 0; i < HIST_COUNT; i++) {
|
||||
if (dump_one_history[i]) {
|
||||
hms_insert_whole_neovim_history(&wms->hms[i]);
|
||||
HMS_ITER(&wms->hms[i], cur_entry, {
|
||||
@@ -2913,7 +2913,7 @@ static ShaDaWriteResult shada_write(ShaDaWriteDef *const sd_writer, ShaDaReadDef
|
||||
}
|
||||
|
||||
shada_write_exit:
|
||||
for (size_t i = 0; i < HIST_COUNT; i++) {
|
||||
for (int i = 0; i < HIST_COUNT; i++) {
|
||||
if (dump_one_history[i]) {
|
||||
hms_dealloc(&wms->hms[i]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user