mirror of
https://github.com/wassname/pyreadline.git
synced 2026-09-12 12:40:47 +08:00
pyreadline-refactor: set_text_color, set_prompt_color added, bug fix history search, ansi color patch
This commit is contained in:
@@ -363,7 +363,8 @@ class BaseMode(object):
|
||||
|
||||
def self_insert(self, e): # (a, b, A, 1, !, ...)
|
||||
'''Insert yourself. '''
|
||||
if ord(e.char)!=0: #don't insert null character in buffer, can happen with dead keys.
|
||||
|
||||
if e.char and ord(e.char)!=0: #don't insert null character in buffer, can happen with dead keys.
|
||||
self.insert_text(e.char)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user