Hello Bram,

'runtime/indent/zimbu.vim' uses line-continuation without cpo handling. This
patch adds that. Though i am not exactly sure i did it right. Line-continuation
happens inside a function with several 'return's surrounding. Please review.

-- 
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6  7C18 89A4 A2A0 C70B 1A8F

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--- vim/runtime/indent/zimbu.vim	2012-05-18 14:57:49.000000000 +0000
+++ zimbu.vim	2012-05-18 15:31:30.000000000 +0000
@@ -34,6 +34,9 @@
     return 0
   endif
 
+  let l:cpo_save = &cpo
+  set cpo&vim
+
   " Taken from Python indenting:
   " If the previous line is inside parenthesis, use the indent of the starting
   " line.
@@ -70,6 +73,10 @@
 	  \ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
 	  \ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
 	  \ . " =~ '\\(Comment\\|String\\|Char\\)$'")
+
+      let &cpo = l:cpo_save
+      unlet l:cpo_save
+
       if pp > 0
 	return indent(prevLnum) + &sw
       endif

Attachment: zimbu.vim
Description: application/wine-extension-vim

Raspunde prin e-mail lui