refactor: move some constants out of vim_defs.h (#26298)

This commit is contained in:
zeertzjq
2023-11-29 20:32:40 +08:00
committed by GitHub
parent f4001d27ef
commit a6cba103ce
89 changed files with 339 additions and 352 deletions

View File

@@ -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])) {