forked from aniani/vim
patch 8.1.0991: cannot build with a mix of features
Problem: Cannot build with FEAT_EVAL defined and FEAT_SEARCH_EXTRA
undefined, and with FEAT_DIFF defined and FEAT_EVAL undefined.
Solution: Add a couple of #ifdefs. (closes #4067)
This commit is contained in:
@@ -567,7 +567,9 @@ set_last_search_pat(
|
||||
saved_spats[idx].pat = NULL;
|
||||
else
|
||||
saved_spats[idx].pat = vim_strsave(spats[idx].pat);
|
||||
# ifdef FEAT_SEARCH_EXTRA
|
||||
saved_spats_last_idx = last_idx;
|
||||
# endif
|
||||
}
|
||||
# ifdef FEAT_SEARCH_EXTRA
|
||||
/* If 'hlsearch' set and search pat changed: need redraw. */
|
||||
|
||||
Reference in New Issue
Block a user