comparison src/tag.c @ 23505:bb29b09902d5 v8.2.2295

patch 8.2.2295: incsearch does not detect empty pattern properly Commit: https://github.com/vim/vim/commit/d93a7fc1a98a58f8101ee780d4735079ad99ae35 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 4 12:42:13 2021 +0100 patch 8.2.2295: incsearch does not detect empty pattern properly Problem: Incsearch does not detect empty pattern properly. Solution: Return magic state when skipping over a pattern. (Christian Brabandt, closes #7612, closes #6420)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Jan 2021 12:45:05 +0100
parents a84e7abb0c92
children 87671ccc6c6b
comparison
equal deleted inserted replaced
23504:25d5c354a83e 23505:bb29b09902d5
3310 char_u *lbuf_arg, // line from the tags file for this tag 3310 char_u *lbuf_arg, // line from the tags file for this tag
3311 int forceit, // :ta with ! 3311 int forceit, // :ta with !
3312 int keep_help) // keep help flag (FALSE for cscope) 3312 int keep_help) // keep help flag (FALSE for cscope)
3313 { 3313 {
3314 int save_secure; 3314 int save_secure;
3315 int save_magic_overruled; 3315 optmagic_T save_magic_overruled;
3316 int save_p_ws, save_p_scs, save_p_ic; 3316 int save_p_ws, save_p_scs, save_p_ic;
3317 linenr_T save_lnum; 3317 linenr_T save_lnum;
3318 char_u *str; 3318 char_u *str;
3319 char_u *pbuf; // search pattern buffer 3319 char_u *pbuf; // search pattern buffer
3320 char_u *pbuf_end; 3320 char_u *pbuf_end;
3503 secure = 1; 3503 secure = 1;
3504 #ifdef HAVE_SANDBOX 3504 #ifdef HAVE_SANDBOX
3505 ++sandbox; 3505 ++sandbox;
3506 #endif 3506 #endif
3507 save_magic_overruled = magic_overruled; 3507 save_magic_overruled = magic_overruled;
3508 magic_overruled = MAGIC_OFF; // always execute with 'nomagic' 3508 magic_overruled = OPTION_MAGIC_OFF; // always execute with 'nomagic'
3509 #ifdef FEAT_SEARCH_EXTRA 3509 #ifdef FEAT_SEARCH_EXTRA
3510 // Save value of no_hlsearch, jumping to a tag is not a real search 3510 // Save value of no_hlsearch, jumping to a tag is not a real search
3511 save_no_hlsearch = no_hlsearch; 3511 save_no_hlsearch = no_hlsearch;
3512 #endif 3512 #endif
3513 3513