mirror of
https://github.com/NevermindZZT/letter-shell.git
synced 2025-01-21 10:02:54 +08:00
修复命令名过长时,显示命令列表异常的问题
This commit is contained in:
parent
3a0a5a493a
commit
f86900e8f4
2
shell.c
2
shell.c
@ -1222,7 +1222,7 @@ SHELL_EXPORT_CMD(vars, shellListVariables, show vars);
|
||||
*/
|
||||
static void shellDisplayItem(SHELL_TypeDef *shell, unsigned short index)
|
||||
{
|
||||
unsigned short spaceLength;
|
||||
short spaceLength;
|
||||
SHELL_CommandTypeDef *base = shell->commandBase;
|
||||
|
||||
spaceLength = 22 - shellDisplay(shell, (base + index)->name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user