This is an automated email from the ASF dual-hosted git repository. jerzy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit bcf39a9d310a3df7e820d9f10860c637ffef3317 Author: Jerzy Kasenberg <[email protected]> AuthorDate: Tue Jun 18 15:48:37 2019 +0200 sys/shell: Whole word completion fix When whole command was typed and there was no space after command pressing TAB did not append space (unlike case when there was same match and command was completed). Now when whole command is typed pressing TAB adds single space. --- sys/shell/src/shell.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/shell/src/shell.c b/sys/shell/src/shell.c index b6bbe12..789ad30 100644 --- a/sys/shell/src/shell.c +++ b/sys/shell/src/shell.c @@ -686,6 +686,10 @@ complete_command(char *line, char *command_prefix, append_char(line, ' '); } return; + } else if (match_count == 1) { + /* Whole word matched, append space */ + append_char(line, ' '); + return; } /*
