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)
diff --git a/src/search.c b/src/search.c
index 5d02dd9..d517c60 100644
--- a/src/search.c
+++ b/src/search.c
@@ -4592,7 +4592,7 @@
ml_get(curwin->w_buffer->b_ml.ml_line_count));
}
}
-
+ p_ws = old_p_ws;
}
start_pos = pos;
@@ -4607,7 +4607,6 @@
if (!VIsual_active)
VIsual = start_pos;
- p_ws = old_p_ws;
curwin->w_cursor = pos;
VIsual_active = TRUE;
VIsual_mode = 'v';