toggle-tabs should toggle using tabs in buffer

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2010-07-06 09:40:28 -04:00
parent 7dac9a1984
commit 3bcf14bbb0
1 changed files with 3 additions and 1 deletions

View File

@ -169,8 +169,10 @@ class ToggleTabs(Method):
b = w.buffer
b.writetabs = not b.writetabs
if b.writetabs:
b.usetabs = True
w.set_error("Buffer will save tabs")
else:
b.usetabs = False
w.set_error("Buffer will not save tabs")
class Pwd(Method):
@ -206,4 +208,4 @@ class SetBufferCodec(Method):
s = u.encode(w.buffer.codec)
w.buffer.codec = codec
u = s.decode(codec)
w.buffer.set_data(u, force=True)
w.buffer.set_data(u, force=True)