Describe the bug
This relates to a fix: https://github.com/zephyrproject-rtos/zephyr/pull/78130/
With this in place, there will no longer be a hard-fault on divide by zero if the string length is longer than CONFIG_SHELL_DEFAULT_TERMINAL_WIDTH
However, now, there will be an assert.
To Reproduce
Try to autocomplete with a path which is longer than CONFIG_SHELL_DEFAULT_TERMINAL_WIDTH
Expected behavior
The line should wrap in the terminal.
Describe the bug This relates to a fix: https://github.com/zephyrproject-rtos/zephyr/pull/78130/ With this in place, there will no longer be a hard-fault on divide by zero if the string length is longer than
CONFIG_SHELL_DEFAULT_TERMINAL_WIDTH
However, now, there will be an assert.
To Reproduce Try to autocomplete with a path which is longer than CONFIG_SHELL_DEFAULT_TERMINAL_WIDTH
Expected behavior The line should wrap in the terminal.
Impact This will trigger an assert in https://github.com/zephyrproject-rtos/zephyr/blob/c14b022beab8097ed7b79daed02dbf899fc8a490/subsys/shell/shell.c#L144