diff --git a/buffer2.py b/buffer2.py index 3bdb17c..821716d 100644 --- a/buffer2.py +++ b/buffer2.py @@ -456,6 +456,9 @@ class FileBuffer(Buffer): temp_path = self._temp_path() data = self.make_string(nl=self.nl) + if self.windows[0].mode.savetabs: + data = data.replace(" ", "\t") + data = self.write_filter(data) f2 = self._open_file_w(temp_path) diff --git a/mode2.py b/mode2.py index cf3f027..a361750 100644 --- a/mode2.py +++ b/mode2.py @@ -72,6 +72,7 @@ class Handler(object): class Fundamental(Handler): '''This is the default mode''' + savetabs = False tabwidth = 4 tabbercls = None grammar = None