Commit 02a53cf4 authored by Kai Willadsen's avatar Kai Willadsen

filediff: Minor buffer data handling refactor

parent f18cf092
......@@ -884,7 +884,8 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
meldbuffer.BufferDeletionAction(buf, it0.get_offset(), text))
def on_undo_checkpointed(self, undosequence, buf, checkpointed):
self.set_buffer_modified(buf, not checkpointed) = not checkpointed
def open_external(self, pane):
......@@ -1569,10 +1570,6 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.readonlytoggle[index].props.visible = not writable
self.set_buffer_editable(buf, writable)
def set_buffer_modified(self, buf, yesno): = yesno
def set_buffer_editable(self, buf, editable): = editable
index = self.textbuffer.index(buf)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment