aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/optionstr.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-10-16 08:06:07 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-10-16 08:34:55 +0800
commit19eb7054ff7b1fbc78e56e7f9ed6537b085147bc (patch)
treef10b35a7a415ebd3cbfc3b944aec96e65892becc /src/nvim/optionstr.c
parentbc798dfd8cea9a5f93461e05dcb8409b6d96afc0 (diff)
downloadrneovim-19eb7054ff7b1fbc78e56e7f9ed6537b085147bc.tar.gz
rneovim-19eb7054ff7b1fbc78e56e7f9ed6537b085147bc.tar.bz2
rneovim-19eb7054ff7b1fbc78e56e7f9ed6537b085147bc.zip
vim-patch:9.0.0761: cannot use 'indentexpr' for Lisp indenting
Problem: Cannot use 'indentexpr' for Lisp indenting. Solution: Add the 'lispoptions' option. https://github.com/vim/vim/commit/49846fb1a31de99f49d6a7e70efe685197423c84 vim-patch:9.0.0762: build failure Problem: Build failure. Solution: Add missing change. https://github.com/vim/vim/commit/4b082c4bd05f504fda1acaa9d28fca55a2d04857
Diffstat (limited to 'src/nvim/optionstr.c')
-rw-r--r--src/nvim/optionstr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/optionstr.c b/src/nvim/optionstr.c
index be3e137b69..43628d2842 100644
--- a/src/nvim/optionstr.c
+++ b/src/nvim/optionstr.c
@@ -228,6 +228,7 @@ void check_buf_options(buf_T *buf)
check_string_option(&buf->b_p_cink);
check_string_option(&buf->b_p_cino);
parse_cino(buf);
+ check_string_option(&buf->b_p_lop);
check_string_option(&buf->b_p_ft);
check_string_option(&buf->b_p_cinw);
check_string_option(&buf->b_p_cinsd);
@@ -1378,6 +1379,10 @@ char *did_set_string_option(int opt_idx, char **varp, char *oldval, char *errbuf
} else if (gvarp == &p_cino) { // 'cinoptions'
// TODO(vim): recognize errors
parse_cino(curbuf);
+ } else if (gvarp == &p_lop) { // 'lispoptions'
+ if (**varp != NUL && strcmp(*varp, "expr:0") != 0 && strcmp(*varp, "expr:1") != 0) {
+ errmsg = e_invarg;
+ }
} else if (varp == &p_icm) { // 'inccommand'
if (check_opt_strings(p_icm, p_icm_values, false) != OK) {
errmsg = e_invarg;