mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -882,10 +882,10 @@ static const void *shada_hist_iter(const void *const iter, const uint8_t history
|
||||
.data = {
|
||||
.history_item = {
|
||||
.histtype = history_type,
|
||||
.string = (char *)hist_he.hisstr,
|
||||
.string = hist_he.hisstr,
|
||||
.sep = (char)(history_type == HIST_SEARCH
|
||||
? (char)hist_he.hisstr[STRLEN(hist_he.hisstr) + 1]
|
||||
: 0),
|
||||
? hist_he.hisstr[STRLEN(hist_he.hisstr) + 1]
|
||||
: 0),
|
||||
.additional_elements = hist_he.additional_elements,
|
||||
}
|
||||
}
|
||||
@@ -1008,7 +1008,7 @@ static inline void hms_to_he_array(const HistoryMergerState *const hms_p,
|
||||
HMLL_FORALL(&hms_p->hmll, cur_entry, {
|
||||
hist->timestamp = cur_entry->data.timestamp;
|
||||
hist->hisnum = (int)(hist - hist_array) + 1;
|
||||
hist->hisstr = (char_u *)cur_entry->data.data.history_item.string;
|
||||
hist->hisstr = cur_entry->data.data.history_item.string;
|
||||
hist->additional_elements =
|
||||
cur_entry->data.data.history_item.additional_elements;
|
||||
hist++;
|
||||
|
Reference in New Issue
Block a user