comparison src/search.c @ 745:d41f5f59266e

updated for version 7.0222
author vimboss
date Sun, 12 Mar 2006 22:10:07 +0000
parents 2e887dfa8917
children 4a79d6d376f0
comparison
equal deleted inserted replaced
744:07f7b4a7755c 745:d41f5f59266e
286 spats[idx].no_scs = no_smartcase; 286 spats[idx].no_scs = no_smartcase;
287 last_idx = idx; 287 last_idx = idx;
288 #ifdef FEAT_SEARCH_EXTRA 288 #ifdef FEAT_SEARCH_EXTRA
289 /* If 'hlsearch' set and search pat changed: need redraw. */ 289 /* If 'hlsearch' set and search pat changed: need redraw. */
290 if (p_hls) 290 if (p_hls)
291 redraw_all_later(NOT_VALID); 291 redraw_all_later(SOME_VALID);
292 no_hlsearch = FALSE; 292 no_hlsearch = FALSE;
293 #endif 293 #endif
294 } 294 }
295 } 295 }
296 296
448 saved_last_idx = last_idx; 448 saved_last_idx = last_idx;
449 } 449 }
450 # ifdef FEAT_SEARCH_EXTRA 450 # ifdef FEAT_SEARCH_EXTRA
451 /* If 'hlsearch' set and search pat changed: need redraw. */ 451 /* If 'hlsearch' set and search pat changed: need redraw. */
452 if (p_hls && idx == last_idx && !no_hlsearch) 452 if (p_hls && idx == last_idx && !no_hlsearch)
453 redraw_all_later(NOT_VALID); 453 redraw_all_later(SOME_VALID);
454 # endif 454 # endif
455 } 455 }
456 #endif 456 #endif
457 457
458 #ifdef FEAT_SEARCH_EXTRA 458 #ifdef FEAT_SEARCH_EXTRA
1030 /* 1030 /*
1031 * Turn 'hlsearch' highlighting back on. 1031 * Turn 'hlsearch' highlighting back on.
1032 */ 1032 */
1033 if (no_hlsearch && !(options & SEARCH_KEEP)) 1033 if (no_hlsearch && !(options & SEARCH_KEEP))
1034 { 1034 {
1035 redraw_all_later(NOT_VALID); 1035 redraw_all_later(SOME_VALID);
1036 no_hlsearch = FALSE; 1036 no_hlsearch = FALSE;
1037 } 1037 }
1038 #endif 1038 #endif
1039 1039
1040 /* 1040 /*