summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcmd2.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd2.py b/cmd2.py
index eadd5a60..c2779707 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1667,6 +1667,10 @@ class Cmd(cmd.Cmd):
# have to use ctypes to do it since Python's readline API does not wrap the function
readline_lib.rl_forced_update_display()
+ # Let readline know that we manually did a redisplay
+ display_fixed = ctypes.c_int.in_dll(readline_lib, "rl_display_fixed")
+ display_fixed.value = 1
+
@staticmethod
def _display_matches_pyreadline(matches):
"""