summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 9f9a199..93e5647 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -270,7 +270,8 @@ struct globals {
#define INIT_G() do { \
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
last_file_modified = -1; \
- last_search_pattern = xzalloc(2); /* "" but has space for 2 chars */ \
+ /* "" but has space for 2 chars: */ \
+ USE_FEATURE_VI_SEARCH(last_search_pattern = xzalloc(2);) \
} while (0)