diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-11-11 12:11:08 -0500 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-11-11 12:11:08 -0500 |
commit | 8721a3df6fcb49b3c019922c12de408c438e50c1 (patch) | |
tree | f0f12667ec3c97cdfd2d4eb23af8004d87157ba1 | |
parent | d3a9a6d2fdb99f6fdec064020f7b8a4b4d4e5d13 (diff) | |
download | cmd2-git-win_tab_crash.tar.gz |
Fixed tab completion crash on Windowswin_tab_crash
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | cmd2/cmd2.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index af4dc826..dd91f9aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.4.0 (TBD XX, 2020) +* Bug Fixes + * Fixed tab completion crash on Windows + ## 1.3.11 (October 1, 2020) * Bug Fixes * Fixed issue where quoted redirectors and terminators in aliases and macros were not being diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index ea4e01de..8e23eca0 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1590,7 +1590,7 @@ class Cmd(cmd.Cmd): matches_to_display, _ = self._pad_matches_to_display(matches_to_display) # Print any metadata like a hint or table header - readline.rl.mode.console.write(sys.stdout.write(self._build_completion_metadata_string())) + readline.rl.mode.console.write(self._build_completion_metadata_string()) # Display matches using actual display function. This also redraws the prompt and line. orig_pyreadline_display(matches_to_display) |