diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-29 20:32:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 20:32:40 +0800 |
commit | a6cba103cebce535279db197f9efeb34e9d1171f (patch) | |
tree | 17a8d9b4ecabf8e2c02c07e18b81c85f2e7c429f /src/nvim/indent.c | |
parent | f4001d27efae44c6c07678ad2c72eed5f1a25ea8 (diff) | |
download | rneovim-a6cba103cebce535279db197f9efeb34e9d1171f.tar.gz rneovim-a6cba103cebce535279db197f9efeb34e9d1171f.tar.bz2 rneovim-a6cba103cebce535279db197f9efeb34e9d1171f.zip |
refactor: move some constants out of vim_defs.h (#26298)
Diffstat (limited to 'src/nvim/indent.c')
-rw-r--r-- | src/nvim/indent.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c index e3ba395164..348f3a6528 100644 --- a/src/nvim/indent.c +++ b/src/nvim/indent.c @@ -36,6 +36,7 @@ #include "nvim/pos_defs.h" #include "nvim/regexp.h" #include "nvim/search.h" +#include "nvim/state_defs.h" #include "nvim/strings.h" #include "nvim/textformat.h" #include "nvim/types_defs.h" @@ -1369,11 +1370,11 @@ int get_lisp_indent(void) static int lisp_match(char *p) { - char buf[LSIZE]; + char buf[512]; char *word = *curbuf->b_p_lw != NUL ? curbuf->b_p_lw : p_lispwords; while (*word != NUL) { - (void)copy_option_part(&word, buf, LSIZE, ","); + (void)copy_option_part(&word, buf, sizeof(buf), ","); int len = (int)strlen(buf); if ((strncmp(buf, p, (size_t)len) == 0) && ascii_iswhite_or_nul(p[len])) { |