Revert "Do not display ^I when pasting a tabulation char."
This reverts commit 837b46d68b
.
This commit is contained in:
parent
0af1c7fe9a
commit
f525bcc1f0
1 changed files with 3 additions and 5 deletions
|
@ -1097,11 +1097,9 @@ class Core(object):
|
||||||
"""
|
"""
|
||||||
main loop waiting for the user to press a key
|
main loop waiting for the user to press a key
|
||||||
"""
|
"""
|
||||||
def replace_special_keys(key):
|
def replace_line_breaks(key):
|
||||||
if key == '^J':
|
if key == '^J':
|
||||||
return '\n'
|
return '\n'
|
||||||
elif key == '^I':
|
|
||||||
return ' '
|
|
||||||
return key
|
return key
|
||||||
while self.running:
|
while self.running:
|
||||||
if self.paused: continue
|
if self.paused: continue
|
||||||
|
@ -1129,11 +1127,11 @@ class Core(object):
|
||||||
if func:
|
if func:
|
||||||
func()
|
func()
|
||||||
else:
|
else:
|
||||||
res = self.do_command(replace_special_keys(char), False)
|
res = self.do_command(replace_line_breaks(char), False)
|
||||||
if res:
|
if res:
|
||||||
self.refresh_window()
|
self.refresh_window()
|
||||||
else:
|
else:
|
||||||
self.do_command(''.join(list(map(replace_special_keys char_list))), True)
|
self.do_command(''.join(list(map(replace_line_breaks, char_list))), True)
|
||||||
self.refresh_window()
|
self.refresh_window()
|
||||||
self.doupdate()
|
self.doupdate()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue