1 --- busybox-1.12.1/editors/vi.c Sun Sep 28 20:04:29 2008
2 +++ busybox-1.12.1-vi/editors/vi.c Thu Oct 30 23:54:30 2008
4 #define INIT_G() do { \
5 SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
6 last_file_modified = -1; \
7 + /* "" but has space for 2 chars */ \
8 + USE_FEATURE_VI_SEARCH(last_search_pattern = xzalloc(2);) \
13 const char *msg = msg; // for compiler
14 char c1, *p, *q, *save_dot;
16 - int dir = dir; // for compiler
20 // c1 = c; // quiet the compiler
22 q = get_input_line(buf); // get input line- use "status line"
24 if (last_search_pattern[0])
25 - last_search_pattern[0] = c;
26 + last_search_pattern[0] = c;
27 goto dc3; // if no pat re-use old pat
29 if (q[0]) { // strlen(q) > 1: new pat- save it and find
30 @@ -3346,14 +3348,8 @@
34 - if (last_search_pattern == 0) {
35 - msg = "No previous regular expression";
38 - if (last_search_pattern[0] == '/') {
39 - dir = FORWARD; // assume FORWARD search
42 + dir = FORWARD; // assume FORWARD search
44 if (last_search_pattern[0] == '?') {