toggle-tabs should toggle using tabs in buffer
--HG-- branch : pmacs2
This commit is contained in:
parent
7dac9a1984
commit
3bcf14bbb0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue