mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -746,7 +746,7 @@ void win_set_minimal_style(win_T *wp)
|
||||
parse_winhl_opt(wp);
|
||||
|
||||
// signcolumn: use 'auto'
|
||||
if (wp->w_p_scl[0] != 'a' || STRLEN(wp->w_p_scl) >= 8) {
|
||||
if (wp->w_p_scl[0] != 'a' || strlen(wp->w_p_scl) >= 8) {
|
||||
free_string_option(wp->w_p_scl);
|
||||
wp->w_p_scl = xstrdup("auto");
|
||||
}
|
||||
@@ -6467,10 +6467,10 @@ char_u *file_name_in_line(char_u *line, int col, int options, long count, char_u
|
||||
// Also accept " line 999" with and without the same translation as
|
||||
// used in last_set_msg().
|
||||
p = ptr + len;
|
||||
if (STRNCMP(p, line_english, STRLEN(line_english)) == 0) {
|
||||
p += STRLEN(line_english);
|
||||
} else if (STRNCMP(p, line_transl, STRLEN(line_transl)) == 0) {
|
||||
p += STRLEN(line_transl);
|
||||
if (STRNCMP(p, line_english, strlen(line_english)) == 0) {
|
||||
p += strlen(line_english);
|
||||
} else if (STRNCMP(p, line_transl, strlen(line_transl)) == 0) {
|
||||
p += strlen(line_transl);
|
||||
} else {
|
||||
p = skipwhite(p);
|
||||
}
|
||||
|
Reference in New Issue
Block a user