diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-13 12:30:08 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-13 12:30:08 +0100 |
commit | d26c5805bcbd630dab0478c2d22503a6e32a83c1 (patch) | |
tree | 3893b73181832ad6c7aab687f1d0d47dacfc7515 /src/indent.c | |
parent | f8412c9d7cc487dacf47a217ae947da68a525c53 (diff) | |
download | vim-git-d26c5805bcbd630dab0478c2d22503a6e32a83c1.tar.gz |
patch 9.0.0737: Lisp word only recognized when a space followsv9.0.0737
Problem: Lisp word only recognized when a space follows.
Solution: Also match a word at the end of a line. Rename the test. Use a
compiled function to avoid backslashes.
Diffstat (limited to 'src/indent.c')
-rw-r--r-- | src/indent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index 79162bf78..c6e3aaf33 100644 --- a/src/indent.c +++ b/src/indent.c @@ -1952,7 +1952,7 @@ lisp_match(char_u *p) { (void)copy_option_part(&word, buf, LSIZE, ","); len = (int)STRLEN(buf); - if (STRNCMP(buf, p, len) == 0 && p[len] == ' ') + if (STRNCMP(buf, p, len) == 0 && IS_WHITE_OR_NUL(p[len])) return TRUE; } return FALSE; |