summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-11-11 12:11:08 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-11-11 12:11:08 -0500
commit8721a3df6fcb49b3c019922c12de408c438e50c1 (patch)
treef0f12667ec3c97cdfd2d4eb23af8004d87157ba1 /cmd2/cmd2.py
parentd3a9a6d2fdb99f6fdec064020f7b8a4b4d4e5d13 (diff)
downloadcmd2-git-win_tab_crash.tar.gz
Fixed tab completion crash on Windowswin_tab_crash
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py2
1 files changed, 1 insertions, 1 deletions
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)