aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/indent.c
diff options
context:
space:
mode:
authorAndré Twupack <atwupack@mailbox.org>2014-08-14 22:20:50 +0200
committerAndré Twupack <atwupack@mailbox.org>2014-08-15 18:56:05 +0200
commit9c8da794e114c3cd5cafe1edac9a8711506a7ba5 (patch)
treee3722355f655da4bba0db2a0a7fef04b6d204cd1 /src/nvim/indent.c
parent933602b1882c6596f06125fc621825c357409899 (diff)
downloadrneovim-9c8da794e114c3cd5cafe1edac9a8711506a7ba5.tar.gz
rneovim-9c8da794e114c3cd5cafe1edac9a8711506a7ba5.tar.bz2
rneovim-9c8da794e114c3cd5cafe1edac9a8711506a7ba5.zip
vim-patch:7.4.201
Problem: 'lispwords' is a global option. Solution: Make 'lispwords' global-local. (Sung Pae) https://code.google.com/p/vim/source/detail?r=06e5f65c34d8136c3a9d2219429b7eca35cb3a21
Diffstat (limited to 'src/nvim/indent.c')
-rw-r--r--src/nvim/indent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c
index ebc5955bae..d4c6b36177 100644
--- a/src/nvim/indent.c
+++ b/src/nvim/indent.c
@@ -690,7 +690,7 @@ static int lisp_match(char_u *p)
{
char_u buf[LSIZE];
int len;
- char_u *word = p_lispwords;
+ char_u *word = *curbuf->b_p_lw != NUL ? curbuf->b_p_lw : p_lispwords;
while (*word != NUL) {
(void)copy_option_part(&word, buf, LSIZE, ",");