changeset 5452:8f0c264db1e7 v7.4.076

updated for version 7.4.076 Problem: "cgn" does not wrap around the end of the file. (Dimitrov Dimitrov) Solution: Restore 'wrapscan' earlier. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Thu, 07 Nov 2013 04:46:48 +0100
parents 6c1758fc8cf2
children 6bc8d3dbe23f
files src/search.c src/version.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -4592,7 +4592,7 @@ current_search(count, forward)
 				ml_get(curwin->w_buffer->b_ml.ml_line_count));
 	    }
 	}
-
+	p_ws = old_p_ws;
     }
 
     start_pos = pos;
@@ -4607,7 +4607,6 @@ current_search(count, forward)
     if (!VIsual_active)
 	VIsual = start_pos;
 
-    p_ws = old_p_ws;
     curwin->w_cursor = pos;
     VIsual_active = TRUE;
     VIsual_mode = 'v';
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    76,
+/**/
     75,
 /**/
     74,