diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-18 06:20:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-18 06:20:06 +0800 |
commit | 19d7fb8efeaeb84bc639282de1510b7e8962d49a (patch) | |
tree | 70e61646b7c7ea3d12aab1c81802db98fe0b1dfe /src/nvim/charset.c | |
parent | 9f7e7455c01718c696e132513fd449235bd4f865 (diff) | |
download | rneovim-19d7fb8efeaeb84bc639282de1510b7e8962d49a.tar.gz rneovim-19d7fb8efeaeb84bc639282de1510b7e8962d49a.tar.bz2 rneovim-19d7fb8efeaeb84bc639282de1510b7e8962d49a.zip |
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
https://github.com/vim/vim/commit/be5cdd1d634c2dfc7e415499fb18f4d246a8721c
Diffstat (limited to 'src/nvim/charset.c')
-rw-r--r-- | src/nvim/charset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/charset.c b/src/nvim/charset.c index c6efb4b3b4..4030d818c8 100644 --- a/src/nvim/charset.c +++ b/src/nvim/charset.c @@ -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. |