Skip to content

Commit 5bca14f

Browse files
committed
Made changes requested in code review
1 parent cb07ba9 commit 5bca14f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd2/ansi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def strip_style(text: str) -> str:
184184

185185
def style_aware_wcswidth(text: str) -> int:
186186
"""
187-
Wrap wcswidth to make it compatible with strings that contains ANSI style sequences.
187+
Wrap wcswidth to make it compatible with strings that contain ANSI style sequences.
188188
This is intended for single line strings. If text contains a newline, this
189189
function will return -1. For multiline strings, call widest_line() instead.
190190

cmd2/argparse_completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def _complete_flags(self, text: str, line: str, begidx: int, endidx: int, matche
526526
def _format_completions(self, arg_state: _ArgumentState, completions: List[Union[str, CompletionItem]]) -> List[str]:
527527
# Check if the results are CompletionItems and that there aren't too many to display
528528
if 1 < len(completions) <= self._cmd2_app.max_completion_items and isinstance(completions[0], CompletionItem):
529-
four_spaces = ' '
529+
four_spaces = 4 * ' '
530530

531531
# If the user has not already sorted the CompletionItems, then sort them before appending the descriptions
532532
if not self._cmd2_app.matches_sorted:

0 commit comments

Comments
 (0)