summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-06-02 15:05:27 -0400
committerGitHub <noreply@github.com>2020-06-02 15:05:27 -0400
commitf626f8674c3bdf40c3c96f7009f01cf2d5315a7a (patch)
tree2b3285371fa2edebb10045f32bdf0c1e9b1b8202 /cmd2/cmd2.py
parent8d9405a1fcc2169aa039172a8e2891b839a59e6c (diff)
parent52e70d09ac2c365b77ac00a8689913251f713f67 (diff)
downloadcmd2-git-f626f8674c3bdf40c3c96f7009f01cf2d5315a7a.tar.gz
Merge pull request #941 from python-cmd2/hint_bug
Hint bug
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r--cmd2/cmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 73f7aa79..65047cc8 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -1147,7 +1147,7 @@ class Cmd(cmd.Cmd):
# Print the header if one exists
if self.completion_header:
- sys.stdout.write('\n' + self.completion_header)
+ sys.stdout.write('\n\n' + self.completion_header)
# Call readline's display function
# rl_display_match_list(strings_array, number of completion matches, longest match length)
@@ -1176,7 +1176,7 @@ class Cmd(cmd.Cmd):
# Print the header if one exists
if self.completion_header:
# noinspection PyUnresolvedReferences
- readline.rl.mode.console.write('\n' + self.completion_header)
+ readline.rl.mode.console.write('\n\n' + self.completion_header)
# Display matches using actual display function. This also redraws the prompt and line.
orig_pyreadline_display(matches_to_display)