Skip to content

Commit 6c13126

Browse files
committed
Fixed flake warning
1 parent c32412e commit 6c13126

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmd2/cmd2.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3615,12 +3615,11 @@ def async_alert(self, alert_msg: str, new_prompt: Optional[str] = None) -> None:
36153615
line_width = utils.ansi_safe_wcswidth(line)
36163616
num_prompt_terminal_lines += int(line_width / terminal_size.columns) + 1
36173617

3618-
# Now calculate how many terminal lines are take up by the input lines
3618+
# Now calculate how many terminal lines are take up by the input
36193619
last_prompt_line = prompt_lines[-1]
36203620
last_prompt_line_width = utils.ansi_safe_wcswidth(last_prompt_line)
36213621

3622-
input_width = (utils.ansi_safe_wcswidth(last_prompt_line) +
3623-
utils.ansi_safe_wcswidth(readline.get_line_buffer()))
3622+
input_width = last_prompt_line_width + utils.ansi_safe_wcswidth(readline.get_line_buffer())
36243623

36253624
num_input_terminal_lines = int(input_width / terminal_size.columns) + 1
36263625

0 commit comments

Comments
 (0)