From 3879a91112722a2a26e0785d402c47b9df8104cb Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Mon, 21 May 2012 13:24:02 +0200 Subject: [PATCH] Fix the ^I (when pasting) issue correctly this time. --- src/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core.py b/src/core.py index 9302b464..7719d44f 100644 --- a/src/core.py +++ b/src/core.py @@ -1101,6 +1101,10 @@ class Core(object): if key == '^J': return '\n' return key + def replace_tabulation(key): + if key == '^I': + return ' ' + return key while self.running: if self.paused: continue char_list = [common.replace_key_with_bound(key)\ @@ -1131,7 +1135,7 @@ class Core(object): if res: self.refresh_window() else: - self.do_command(''.join(list(map(replace_line_breaks, char_list))), True) + self.do_command(''.join(list(map(replace_line_breaks, list(map(replace_tabulation, char_list))))), True) self.refresh_window() self.doupdate()