aboutsummaryrefslogtreecommitdiff
path: root/shell/cmdedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/cmdedit.c')
-rw-r--r--shell/cmdedit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index dda6f6958..ceaa2e885 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -1180,7 +1180,8 @@ static int get_next_history(void)
1180 1180
1181 if (ch < n_history) { 1181 if (ch < n_history) {
1182 get_previous_history(); /* save the current history line */ 1182 get_previous_history(); /* save the current history line */
1183 return (cur_history = ch+1); 1183 cur_history = ch + 1;
1184 return cur_history;
1184 } else { 1185 } else {
1185 beep(); 1186 beep();
1186 return 0; 1187 return 0;