Skip to content

Commit f390451

Browse files
youzuweiCopilot
andauthored
Update components/finsh/shell.c
Co-authored-by: Copilot <[email protected]>
1 parent 1ef140c commit f390451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/finsh/shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ static void finsh_handle_ctrl_right_key(void)
14281428
rt_bool_t is_word_char;
14291429

14301430
/* if already at the end, do nothing */
1431-
if (cursor >= shell->cmd_length)
1431+
if (shell->cmd_cursor >= shell->cmd_length)
14321432
return;
14331433

14341434
cursor = shell->cmd_cursor;

0 commit comments

Comments
 (0)