summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-05-28 14:48:52 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-05-28 14:48:52 -0400
commit72b8a873d70f1c550b5e448d657b732f9a2d7cdb (patch)
treef91f63c7e1b97244aa715b10b61331814f78c66b /cmd2/cmd2.py
parentd4653e6fccf0bc15d04075110769c11befb22819 (diff)
downloadcmd2-git-72b8a873d70f1c550b5e448d657b732f9a2d7cdb.tar.gz
Updated argparse_completer to use TableCreator for the hint table
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 49c181f1..7245273a 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)