On 20-Jan-2014 Christian Wellenbrock <[email protected]> wrote:
> On Monday, January 20, 2014 1:08:07 PM UTC+1, Lech Lorens wrote:
> > I can confirm – it is caused by the indent script.  The attached patch 
> > marks the place that is incorrect (and might fix the problem in this 
> > particular case).  Note that I've found at least one more place that 
> > seems to be affected by a similar error.  Can someone, (OP?) contact the 
> > script's author and forward my suggestion?
> > 
> > Thanks,
> > 
> > Lech
> 
> @Lech: It looks like you forgot to add your attachment.

True.  Attached.

Cheers!
Lech

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
diff --git a/after/indent/php.vim b/after/indent/php.vim
index 4902b9e..212dac2 100644
--- a/after/indent/php.vim
+++ b/after/indent/php.vim
@@ -41,9 +41,9 @@
@@ -642,7 +642,7 @@ function! GetPhpIndent()
 	    if previous_line =~ '^\s*}\|;\s*}'.endline " XXX
 
 		call cursor(last_line_num, 1)
-		call search('}\|;\s*}'.endline, 'W')
+		call search('}\|;\s*}'.endline, 'cW')
 		let oldLastLine = last_line_num
 		let last_line_num = searchpair('{', '', '}', 'bW', 'Skippmatch()')
 

Raspunde prin e-mail lui