Skip to content

Commit 887bda4

Browse files
authored
Merge pull request #1014 from python-cmd2/win_tab_crash
Fixed tab completion crash on Windows
2 parents d3a9a6d + 8721a3d commit 887bda4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.4.0 (TBD XX, 2020)
2+
* Bug Fixes
3+
* Fixed tab completion crash on Windows
4+
15
## 1.3.11 (October 1, 2020)
26
* Bug Fixes
37
* Fixed issue where quoted redirectors and terminators in aliases and macros were not being

cmd2/cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ def _display_matches_pyreadline(self, matches: List[str]) -> None: # pragma: no
15901590
matches_to_display, _ = self._pad_matches_to_display(matches_to_display)
15911591

15921592
# Print any metadata like a hint or table header
1593-
readline.rl.mode.console.write(sys.stdout.write(self._build_completion_metadata_string()))
1593+
readline.rl.mode.console.write(self._build_completion_metadata_string())
15941594

15951595
# Display matches using actual display function. This also redraws the prompt and line.
15961596
orig_pyreadline_display(matches_to_display)

0 commit comments

Comments
 (0)