diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-30 22:48:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 22:48:15 +0800 |
commit | a6f26c86cb74222fe2449f8a035f29b0ee45c98e (patch) | |
tree | f1aaea14334440a65d7307ec9f4acb614129679d /src/nvim/shada.c | |
parent | 884a83049b2c33e2b3b6cc5c9c7f6bf820b24a3d (diff) | |
download | rneovim-a6f26c86cb74222fe2449f8a035f29b0ee45c98e.tar.gz rneovim-a6f26c86cb74222fe2449f8a035f29b0ee45c98e.tar.bz2 rneovim-a6f26c86cb74222fe2449f8a035f29b0ee45c98e.zip |
refactor(IWYU): fix includes for cmdhist.h (#26324)
Diffstat (limited to 'src/nvim/shada.c')
-rw-r--r-- | src/nvim/shada.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c index d288c36f65..819fbcf885 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -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]); } |