shell: check echo flag in z_shell_cursor_in_empty_line()

If the echo flag is disabled the cmd_buff isn't printed and the
characters in it must not be counted in this function.

Signed-off-by: Gerhard Jörges <joerges@metratec.com>
1 file changed