3 @@ -3313,7 +3313,7 @@ static void do_cmd(char c)
5 q = get_input_line(buf); // get input line- use "status line"
7 - if (last_search_pattern[0])
8 + if (last_search_pattern)
9 last_search_pattern[0] = c;
10 goto dc3; // if no pat re-use old pat
12 @@ -3329,6 +3329,10 @@ static void do_cmd(char c)
16 + if (last_search_pattern == 0) {
17 + msg = "No previous regular expression";
20 dir = BACK; // assume BACKWARD search
22 if (last_search_pattern[0] == '?') {
23 @@ -3348,10 +3352,8 @@ static void do_cmd(char c)
24 msg = "No previous regular expression";
27 - if (last_search_pattern[0] == '/') {
28 - dir = FORWARD; // assume FORWARD search
31 + dir = FORWARD; // assume FORWARD search
33 if (last_search_pattern[0] == '?') {