diff options
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c index fc689db2df..8bb5f3d97a 100644 --- a/src/search.c +++ b/src/search.c @@ -393,6 +393,12 @@ restore_last_search_pattern(void) last_idx = saved_last_idx; SET_NO_HLSEARCH(saved_no_hlsearch); } + + char_u * +last_search_pattern(void) +{ + return spats[RE_SEARCH].pat; +} #endif /* |