aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-04-26 23:12:42 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-04-26 23:12:42 -0400
commitea483231c57d2acf6f4e17db82d33124526931f9 (patch)
treeb26950291fbe3813b57db732cad9e152f6a6e1bc /src/nvim/ex_docmd.c
parente861af85f89e119193a9e219a4cb766757e28e5a (diff)
parent191fb638f415a0a1a05eb83a87d87fc9902d7ffe (diff)
downloadrneovim-ea483231c57d2acf6f4e17db82d33124526931f9.tar.gz
rneovim-ea483231c57d2acf6f4e17db82d33124526931f9.tar.bz2
rneovim-ea483231c57d2acf6f4e17db82d33124526931f9.zip
Merge pull request #4593 from ZyX-I/length-functions
Make some function accept strings with length in place of just strings
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 2d316cb106..648a3a8487 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -4556,7 +4556,8 @@ static int uc_add_command(char_u *name, size_t name_len, char_u *rep,
char_u *rep_buf = NULL;
garray_T *gap;
- replace_termcodes(rep, &rep_buf, FALSE, FALSE, FALSE);
+ replace_termcodes(rep, STRLEN(rep), &rep_buf, false, false, false,
+ CPO_TO_CPO_FLAGS);
if (rep_buf == NULL) {
/* Can't replace termcodes - try using the string as is */
rep_buf = vim_strsave(rep);