aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-08-26 23:11:25 +0200
committerdundargoc <gocdundar@gmail.com>2022-09-11 13:28:59 +0200
commit3ff46544c9872b4161fd098569c30b55fe3abd36 (patch)
tree589b9ebdd86fde7e200b6235596ce6feac976122 /src/nvim/window.c
parent4638fcf4fb688fa548b8ce337ec3b7c1327fbfe9 (diff)
downloadrneovim-3ff46544c9872b4161fd098569c30b55fe3abd36.tar.gz
rneovim-3ff46544c9872b4161fd098569c30b55fe3abd36.tar.bz2
rneovim-3ff46544c9872b4161fd098569c30b55fe3abd36.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 63a6eb9fb6..f6301457f3 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -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);
}