Lines Matching refs:current_command_index
31 int current_command_index; variable
40 current_command_index = 0; in main_loop()
65 if (!count || current_command_index < count_history - 1) in main_loop()
74 current_command_index = count_history - 1; in main_loop()
124 current_command_index -= type; in change_command()
126 if (current_command_index < 0) in change_command()
127 current_command_index++; in change_command()
128 if (current_command_index >= count_history - 1) in change_command()
134 if(current_command_index > 1) in change_command()
135 current_command_index = 1; in change_command()
138 current_command_index = count_history - 2; in change_command()
141 strcpy(buf, history_commands[current_command_index]); in change_command()
183 if (count > 0 && current_command_index >= count_history) in shell_readline()
185 memset(history_commands[current_command_index - 1], 0, in shell_readline()
186 sizeof(history_commands[current_command_index - 1])); in shell_readline()
216 if (count > 0 && current_command_index >= count_history) in shell_readline()
223 …memset(history_commands[current_command_index], 0, sizeof(history_commands[current_command_index])… in shell_readline()
224 strcpy(history_commands[current_command_index], buf); in shell_readline()