1
0
mirror of https://github.com/NevermindZZT/letter-shell.git synced 2025-01-21 10:02:54 +08:00

修复命令名过长时,显示命令列表异常的问题

This commit is contained in:
Letter 2019-12-15 14:55:46 +08:00
parent 3a0a5a493a
commit f86900e8f4

View File

@ -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);