summaryrefslogtreecommitdiff
path: root/AutoCompleter.py
diff options
context:
space:
mode:
Diffstat (limited to 'AutoCompleter.py')
-rwxr-xr-xAutoCompleter.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/AutoCompleter.py b/AutoCompleter.py
index 671195c9..f188a46e 100755
--- a/AutoCompleter.py
+++ b/AutoCompleter.py
@@ -3,6 +3,7 @@ import argparse
import re as _re
import sys
from argparse import OPTIONAL, ZERO_OR_MORE, ONE_OR_MORE, REMAINDER, PARSER, ArgumentError, _
+from rl_utils import rl_force_redisplay
try:
from typing import List, Dict, Tuple, Callable, Union
except:
@@ -488,10 +489,8 @@ class AutoCompleter(object):
out_str += '\n{0: <{width}}'.format('', width=pref_len).join(help_lines)
print('\nHint:' + out_str + '\n')
- # Moving this import here improves the performance when using AutoCompleter in a
- # bash completion function. Loading cmd2 results in a lag of about half a second to a second.
- from cmd2 import reprint_prompt
- reprint_prompt()
+ # Redraw prompt and input line
+ rl_force_redisplay()
# noinspection PyUnusedLocal
@staticmethod