On Mi, 21 Aug 2013, Dimitar DIMITROV wrote:

> Tested with the latest version of Vim from Mercurial.
> After a * search, then cgn and then . to repeat it for all matches,
> I cannot continue past the end of file and change any matches before my 
> initial position

Try the attached patch.

regards,
Christian
-- 
Zwar weiß ich viel, doch möcht' ich alles wissen.
                -- Johann Wolfgang von Goethe (Faust)

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
diff --git a/src/search.c b/src/search.c
--- a/src/search.c
+++ b/src/search.c
@@ -4589,7 +4589,7 @@
 				ml_get(curwin->w_buffer->b_ml.ml_line_count));
 	    }
 	}
-
+	p_ws = old_p_ws;
     }
 
     start_pos = pos;
@@ -4604,7 +4604,6 @@
     if (!VIsual_active)
 	VIsual = start_pos;
 
-    p_ws = old_p_ws;
     curwin->w_cursor = pos;
     VIsual_active = TRUE;
     VIsual_mode = 'v';

Raspunde prin e-mail lui