summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-29 04:16:57 +0100
committerBram Moolenaar <Bram@vim.org>2019-10-29 04:16:57 +0100
commit69bf634858a2a75f2984e42b1e4017bc529a040a (patch)
tree1584b32f67463ec2b31ac858e5ada499a34967af /src/normal.c
parent8b530c1ff91f07cf6b0289a536992b7dfbc86598 (diff)
downloadvim-git-69bf634858a2a75f2984e42b1e4017bc529a040a.tar.gz
patch 8.1.2233: cannot get the Vim command line argumentsv8.1.2233
Problem: Cannot get the Vim command line arguments. Solution: Add v:argv. (Dmitri Vereshchagin, closes #1322)
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.c b/src/normal.c
index 17db06a16..f2527e144 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -5986,7 +5986,7 @@ nv_g_cmd(cmdarg_T *cap)
oap->motion_type = MCHAR;
oap->inclusive = FALSE;
if (has_mbyte)
- i = mb_string2cells(ptr, STRLEN(ptr));
+ i = mb_string2cells(ptr, (int)STRLEN(ptr));
else
i = (int)STRLEN(ptr);
if (cap->count0 > 0 && cap->count0 <= 100)