3 @@ -3317,7 +3317,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 @@ -3333,6 +3333,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] == '?') {