mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +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:
@@ -2572,7 +2572,7 @@ static void list_features(void)
|
||||
int idx = (i / ncol) + (i % ncol) * nrow;
|
||||
if (idx < nfeat) {
|
||||
int last_col = (i + 1) % ncol == 0;
|
||||
msg_puts((char_u *)features[idx]);
|
||||
msg_puts(features[idx]);
|
||||
if (last_col) {
|
||||
if (msg_col > 0) {
|
||||
msg_putchar('\n');
|
||||
|
Reference in New Issue
Block a user