diff options
author | Florent Le Coz <louiz@louiz.org> | 2012-05-21 13:20:19 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2012-05-21 13:28:38 +0200 |
commit | f525bcc1f090d7b1c57f449c04d4aa7fafcb8dd2 (patch) | |
tree | 48cc053df1b5b242818584d8eaa0a74f17efb608 /src | |
parent | 0af1c7fe9a03be34e14ae8ecc332f6d1fa168511 (diff) | |
download | poezio-f525bcc1f090d7b1c57f449c04d4aa7fafcb8dd2.tar.gz poezio-f525bcc1f090d7b1c57f449c04d4aa7fafcb8dd2.tar.bz2 poezio-f525bcc1f090d7b1c57f449c04d4aa7fafcb8dd2.tar.xz poezio-f525bcc1f090d7b1c57f449c04d4aa7fafcb8dd2.zip |
Revert "Do not display ^I when pasting a tabulation char."
This reverts commit 837b46d68b10f5c6e9cc80e07e33fd025b51634b.
Diffstat (limited to 'src')
-rw-r--r-- | src/core.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core.py b/src/core.py index 419ba38f..9302b464 100644 --- a/src/core.py +++ b/src/core.py @@ -1097,11 +1097,9 @@ class Core(object): """ main loop waiting for the user to press a key """ - def replace_special_keys(key): + def replace_line_breaks(key): if key == '^J': return '\n' - elif key == '^I': - return ' ' return key while self.running: if self.paused: continue @@ -1129,11 +1127,11 @@ class Core(object): if func: func() else: - res = self.do_command(replace_special_keys(char), False) + res = self.do_command(replace_line_breaks(char), False) if res: self.refresh_window() 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.doupdate() |