diff src/misc1.c @ 5712:06e5f65c34d8 v7.4.201

updated for version 7.4.201 Problem: 'lispwords' is a global option. Solution: Make 'lispwords' global-local. (Sung Pae)
author Bram Moolenaar <bram@vim.org>
date Wed, 12 Mar 2014 18:55:58 +0100
parents faf7e86203b5
children 5ab2946f7ce5
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -8879,7 +8879,7 @@ lisp_match(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)
     {