mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
*: Partial string handling refactoring
Main points: - Replace `char_u` with `char` in some cases. - Remove `str[len] = NUL` hack in some cases when `str` may be considered `const`.
This commit is contained in:
@@ -2512,13 +2512,14 @@ void ex_undolist(exarg_T *eap)
|
||||
sort_strings((char_u **)ga.ga_data, ga.ga_len);
|
||||
|
||||
msg_start();
|
||||
msg_puts_attr((char_u *)_("number changes when saved"),
|
||||
hl_attr(HLF_T));
|
||||
msg_puts_attr(_("number changes when saved"),
|
||||
hl_attr(HLF_T));
|
||||
for (int i = 0; i < ga.ga_len && !got_int; ++i) {
|
||||
msg_putchar('\n');
|
||||
if (got_int)
|
||||
if (got_int) {
|
||||
break;
|
||||
msg_puts(((char_u **)ga.ga_data)[i]);
|
||||
}
|
||||
msg_puts(((const char **)ga.ga_data)[i]);
|
||||
}
|
||||
msg_end();
|
||||
|
||||
|
Reference in New Issue
Block a user