vim-patch:9.0.1734: :runtime completion fails for multiple args (#24767)

Problem: :runtime completion fails for multiple args
Solution: Make it work

closes: vim/vim#12616

be5cdd1d63
This commit is contained in:
zeertzjq
2023-08-18 06:20:06 +08:00
committed by GitHub
parent 9f7e7455c0
commit 19d7fb8efe
3 changed files with 44 additions and 4 deletions

View File

@@ -1376,7 +1376,7 @@ char *skiptowhite(const char *p)
/// @param p
///
/// @return Pointer to the next whitespace character.
char *skiptowhite_esc(char *p)
char *skiptowhite_esc(const char *p)
FUNC_ATTR_PURE
{
while (*p != ' ' && *p != '\t' && *p != NUL) {
@@ -1385,7 +1385,7 @@ char *skiptowhite_esc(char *p)
}
p++;
}
return p;
return (char *)p;
}
/// Skip over text until '\n' or NUL.