diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-05-14 11:20:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-14 11:20:13 +0200 |
| commit | 99f3e74fc27acb0d9d9f32161e18b5a474697074 (patch) | |
| tree | f6fe0df8bcacf42351caf5f57ed7c4e1e9ca9c4c /src/nvim/strings.h | |
| parent | 9e4286294f9caa5a20851706331cc46a5342f326 (diff) | |
| parent | 566f8f80d6cb7ef2df8366e5f092b0841ee757ce (diff) | |
| download | rneovim-99f3e74fc27acb0d9d9f32161e18b5a474697074.tar.gz rneovim-99f3e74fc27acb0d9d9f32161e18b5a474697074.tar.bz2 rneovim-99f3e74fc27acb0d9d9f32161e18b5a474697074.zip | |
Merge pull request #18542 from famiu/feat/api/nvim_cmd/kvec_t
refactor(api/nvim_cmd): use `kvec_t` for constructing cmdline string
Diffstat (limited to 'src/nvim/strings.h')
| -rw-r--r-- | src/nvim/strings.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/strings.h b/src/nvim/strings.h index 893b0ea269..0503cecc8a 100644 --- a/src/nvim/strings.h +++ b/src/nvim/strings.h @@ -7,6 +7,7 @@ #include "nvim/eval/typval.h" #include "nvim/types.h" +#include "nvim/lib/kvec.h" /// Append string to string and return pointer to the next byte /// @@ -25,6 +26,8 @@ static inline char *strappend(char *const dst, const char *const src) return (char *)memmove(dst, src, src_len) + src_len; } +typedef kvec_t(char) StringBuilder; + #ifdef INCLUDE_GENERATED_DECLARATIONS # include "strings.h.generated.h" #endif |