aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cmdhist.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-12 14:44:28 +0200
committerGitHub <noreply@github.com>2022-08-12 14:44:28 +0200
commit54a165d9a644e822207f02bdd4cf1b810d2788e3 (patch)
treef09ca6baf124ceaeaef27c095fee1e30ecb772b0 /src/nvim/cmdhist.c
parentf79773a3b4b3ce5a3b37652a72b12089880f32a4 (diff)
parent094cdf2d691bc005dadb5a22bb83b85f3b6dff49 (diff)
downloadrneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.tar.gz
rneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.tar.bz2
rneovim-54a165d9a644e822207f02bdd4cf1b810d2788e3.zip
Merge pull request #19592 from dundargoc/refactor/char_u-to-char
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/cmdhist.c')
-rw-r--r--src/nvim/cmdhist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/cmdhist.c b/src/nvim/cmdhist.c
index cd494d2247..5725a6655d 100644
--- a/src/nvim/cmdhist.c
+++ b/src/nvim/cmdhist.c
@@ -583,7 +583,7 @@ void ex_history(exarg_T *eap)
int hisidx2 = -1;
int idx;
int i, j, k;
- char_u *end;
+ char *end;
char_u *arg = (char_u *)eap->arg;
if (hislen == 0) {
@@ -592,14 +592,14 @@ void ex_history(exarg_T *eap)
}
if (!(ascii_isdigit(*arg) || *arg == '-' || *arg == ',')) {
- end = arg;
+ end = (char *)arg;
while (ASCII_ISALPHA(*end)
|| vim_strchr(":=@>/?", *end) != NULL) {
end++;
}
- histype1 = get_histtype((const char *)arg, (size_t)(end - arg), false);
+ histype1 = get_histtype((const char *)arg, (size_t)(end - (char *)arg), false);
if (histype1 == HIST_INVALID) {
- if (STRNICMP(arg, "all", end - arg) == 0) {
+ if (STRNICMP(arg, "all", end - (char *)arg) == 0) {
histype1 = 0;
histype2 = HIST_COUNT - 1;
} else {
@@ -610,7 +610,7 @@ void ex_history(exarg_T *eap)
histype2 = histype1;
}
} else {
- end = arg;
+ end = (char *)arg;
}
if (!get_list_range(&end, &hisidx1, &hisidx2) || *end != NUL) {
semsg(_(e_trailing_arg), end);