1. Jędrzej Nowak
  2. pyrepl

Commits

Alex Gaynor  committed 449df5d

Implemented readline.insert_text.

  • Participants
  • Parent commits fae6847
  • Branches default

Comments (0)

Files changed (1)

File pyrepl/readline.py

View file
     def get_endidx(self):
         return self._get_idxs()[1]
 
+    def insert_text(self, text):
+        return self.get_reader().insert(text)
+
 
 _wrapper = _ReadlineWrapper()
 
 get_line_buffer = _wrapper.get_line_buffer
 get_begidx = _wrapper.get_begidx
 get_endidx = _wrapper.get_endidx
+insert_text = _wrapper.insert_text
 
 # Extension
 multiline_input = _wrapper.multiline_input
     globals()[_name] = stub
 
 for _name, _ret in [
-    ('insert_text', None),
     ('read_init_file', None),
     ('redisplay', None),
     ('set_pre_input_hook', None),