mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.0761: cannot use 'indentexpr' for Lisp indenting
Problem: Cannot use 'indentexpr' for Lisp indenting. Solution: Add the 'lispoptions' option.
This commit is contained in:
@@ -259,6 +259,7 @@ check_buf_options(buf_T *buf)
|
||||
check_string_option(&buf->b_p_cino);
|
||||
check_string_option(&buf->b_p_cinsd);
|
||||
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_cpt);
|
||||
@@ -2102,6 +2103,14 @@ did_set_string_option(
|
||||
parse_cino(curbuf);
|
||||
}
|
||||
|
||||
// 'lispoptions'
|
||||
else if (gvarp == &p_lop)
|
||||
{
|
||||
if (**varp != NUL && STRCMP(*varp, "expr:0") != 0
|
||||
&& STRCMP(*varp, "expr:1") != 0)
|
||||
errmsg = e_invalid_argument;
|
||||
}
|
||||
|
||||
#if defined(FEAT_RENDER_OPTIONS)
|
||||
// 'renderoptions'
|
||||
else if (varp == &p_rop)
|
||||
|
Reference in New Issue
Block a user