comparison src/search.c @ 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 eb33cadafcab
children 6ae816249627
comparison
equal deleted inserted replaced
5451:6c1758fc8cf2 5452:8f0c264db1e7
4590 pos.lnum = curwin->w_buffer->b_ml.ml_line_count; 4590 pos.lnum = curwin->w_buffer->b_ml.ml_line_count;
4591 pos.col = (colnr_T)STRLEN( 4591 pos.col = (colnr_T)STRLEN(
4592 ml_get(curwin->w_buffer->b_ml.ml_line_count)); 4592 ml_get(curwin->w_buffer->b_ml.ml_line_count));
4593 } 4593 }
4594 } 4594 }
4595 4595 p_ws = old_p_ws;
4596 } 4596 }
4597 4597
4598 start_pos = pos; 4598 start_pos = pos;
4599 flags = forward ? SEARCH_END : 0; 4599 flags = forward ? SEARCH_END : 0;
4600 4600
4605 spats[last_idx].pat, 0L, flags | SEARCH_KEEP, RE_SEARCH, 0, NULL); 4605 spats[last_idx].pat, 0L, flags | SEARCH_KEEP, RE_SEARCH, 0, NULL);
4606 4606
4607 if (!VIsual_active) 4607 if (!VIsual_active)
4608 VIsual = start_pos; 4608 VIsual = start_pos;
4609 4609
4610 p_ws = old_p_ws;
4611 curwin->w_cursor = pos; 4610 curwin->w_cursor = pos;
4612 VIsual_active = TRUE; 4611 VIsual_active = TRUE;
4613 VIsual_mode = 'v'; 4612 VIsual_mode = 'v';
4614 4613
4615 if (VIsual_active) 4614 if (VIsual_active)